#798F12

Closest named color: Dark Yellow Green (#728F02). oklch(61.1% 0.14 120.2), rgb(121, 143, 18).

Aa

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

About this color

#798F12 is a medium-dark, vivid yellow. In OKLCH its lightness is 61%, its chroma 0.140 and its hue 120°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Yellow Green (#728F02), ΔE 0.012 away. Black text reads best on it, at 5.75:1.

Hue familyYellows
Lightnessmedium-dark (61%)
Chromavivid (0.140)
Temperaturein between
Nearest nameDark Yellow Green (#728F02)
Black text5.75:1
White text3.65:1

Values

HEX#798F12
RGBrgb(121, 143, 18)
HSLhsl(71, 78%, 32%)
OKLCHoklch(61.1% 0.14 120.2)

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 #798F12 3.65:1 AA large text Lc -69.4 Content text, not long reading
Black text on #798F12 5.75:1 AA Lc 40.1 Non-text elements, placeholder text
#798F12 text on white 3.65:1 AA large text Lc 63.9 Content text, not long reading
#798F12 text on black 5.75:1 AA Lc -37.7 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

    #F4F6F0

    oklch(97% 0.008 121.6)

  2. Step 100

    100

    #E8ECDE

    oklch(93.6% 0.019 119.8)

  3. Step 200

    200

    #D5DDC2

    oklch(88.4% 0.037 120.6)

  4. Step 300

    300

    #BAC896

    oklch(80.9% 0.069 120.7)

  5. Step 400

    400

    #97AB59

    oklch(70.7% 0.11 120.6)

  6. Step 500

    500 (this color)

    #798F12

    oklch(61.1% 0.14 120.2)

  7. Step 600

    600

    #6A7E00

    oklch(55.7% 0.132 120.1)

  8. Step 700

    700

    #586A00

    oklch(49.2% 0.117 120.6)

  9. Step 800

    800

    #485600

    oklch(42.6% 0.101 120)

  10. Step 900

    900

    #3C4800

    oklch(37.7% 0.09 119.9)

  11. Step 950

    950

    #232A05

    oklch(26.9% 0.057 119.6)

Export this scale for Tailwind in the Tailwind colors tool

#798F12 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)#9986000.051
Deuteranopia (no green cones)#9686210.051
Tritanopia (no blue cones)#8187790.119
Achromatopsia (no color)#8686860.140

Harmonies

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

Complementary

The opposite hue (180°).

  • #798F12

    #798F12

    oklch(61.1% 0.14 120.2)

  • #916DCA

    #916DCA

    oklch(61% 0.14 300.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #798F12

    #798F12

    oklch(61.1% 0.14 120.2)

  • #A07F00

    #A07F00

    oklch(61.1% 0.125 90.4)

  • #359A54

    #359A54

    oklch(61.1% 0.14 150.1)

Open the analogous palette in the generator

Split complementary

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

  • #798F12

    #798F12

    oklch(61.1% 0.14 120.2)

  • #647DD7

    #647DD7

    oklch(61.2% 0.139 270.2)

  • #B261AB

    #B261AB

    oklch(61.2% 0.141 330.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #798F12

    #798F12

    oklch(61.1% 0.14 120.2)

  • #028CCE

    #028CCE

    oklch(61.1% 0.14 240.2)

  • #C55B80

    #C55B80

    oklch(61.2% 0.14 0.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #798F12

    #798F12

    oklch(61.1% 0.14 120.2)

  • #0094A7

    #0094A7

    oklch(61.1% 0.106 210.6)

  • #916DCA

    #916DCA

    oklch(61% 0.14 300.1)

  • #CA5E4E

    #CA5E4E

    oklch(61.1% 0.141 30.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #798F12 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.