#798B0C

Closest named color: Dark Yellow Green (#728F02). oklch(60.1% 0.137 118.6), rgb(121, 139, 12).

Aa

Black text reads best on this color (5.51:1).

About this color

#798B0C is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 60%, its chroma 0.137 and its hue 119°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Yellow Green (#728F02), ΔE 0.015 away. Black text reads best on it, at 5.51:1.

Hue familyYellows
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.137)
Temperaturein between
Nearest nameDark Yellow Green (#728F02)
Black text5.51:1
White text3.81:1

Values

HEX#798B0C
RGBrgb(121, 139, 12)
HSLhsl(69, 84%, 30%)
OKLCHoklch(60.1% 0.137 118.6)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #798B0C 3.81:1 AA large text Lc -71.0 Content text, not long reading
Black text on #798B0C 5.51:1 AA Lc 38.6 Non-text elements, placeholder text
#798B0C text on white 3.81:1 AA large text Lc 65.5 Content text, not long reading
#798B0C text on black 5.51:1 AA Lc -36.2 Non-text elements, placeholder text

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.

  1. Step 50

    50

    #F5F6F0

    oklch(97.1% 0.008 114.2)

  2. Step 100

    100

    #E8ECDE

    oklch(93.6% 0.019 119.8)

  3. Step 200

    200

    #D6DDC2

    oklch(88.5% 0.037 119)

  4. Step 300

    300

    #BCC796

    oklch(80.9% 0.067 118.2)

  5. Step 400

    400

    #9AAA59

    oklch(70.7% 0.108 118.4)

  6. Step 500

    500 (this color)

    #798B0C

    oklch(60.1% 0.137 118.6)

  7. Step 600

    600

    #6C7D00

    oklch(55.6% 0.13 118.8)

  8. Step 700

    700

    #5B6900

    oklch(49.2% 0.115 118.5)

  9. Step 800

    800

    #4A5600

    oklch(42.8% 0.1 118.6)

  10. Step 900

    900

    #3D4700

    oklch(37.6% 0.088 118.5)

  11. Step 950

    950

    #242A05

    oklch(27% 0.057 118.3)

Export this scale for Tailwind in the Tailwind colors tool

#798B0C with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#9583000.045
Deuteranopia (no green cones)#93831D0.047
Tritanopia (no blue cones)#8183760.118
Achromatopsia (no color)#8383830.138

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #798B0C

    #798B0C

    oklch(60.1% 0.137 118.6)

  • #8C6CC7

    #8C6CC7

    oklch(60.2% 0.137 298.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #798B0C

    #798B0C

    oklch(60.1% 0.137 118.6)

  • #9F7B00

    #9F7B00

    oklch(60.1% 0.123 88)

  • #399650

    #399650

    oklch(60% 0.136 148.8)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #798B0C

    #798B0C

    oklch(60.1% 0.137 118.6)

  • #5E7BD2

    #5E7BD2

    oklch(60.2% 0.137 268.2)

  • #AC60A9

    #AC60A9

    oklch(60.2% 0.137 328.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #798B0C

    #798B0C

    oklch(60.1% 0.137 118.6)

  • #008AC7

    #008AC7

    oklch(60.2% 0.134 238.4)

  • #C0597F

    #C0597F

    oklch(60.2% 0.138 358.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #798B0C

    #798B0C

    oklch(60.1% 0.137 118.6)

  • #0091A1

    #0091A1

    oklch(60.1% 0.103 208.4)

  • #8C6CC7

    #8C6CC7

    oklch(60.2% 0.137 298.4)

  • #C55C4F

    #C55C4F

    oklch(60.1% 0.137 28.9)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #798B0C, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #798B0C in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.