#798F1F

Closest named color: Dark Yellow Green (#728F02). oklch(61.2% 0.134 120.5), rgb(121, 143, 31).

Aa

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

About this color

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

Hue familyYellows
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.134)
Temperaturein between
Nearest nameDark Yellow Green (#728F02)
Black text5.76:1
White text3.64:1

Values

HEX#798F1F
RGBrgb(121, 143, 31)
HSLhsl(72, 64%, 34%)
OKLCHoklch(61.2% 0.134 120.5)

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 #798F1F 3.64:1 AA large text Lc -69.4 Content text, not long reading
Black text on #798F1F 5.76:1 AA Lc 40.2 Non-text elements, placeholder text
#798F1F text on white 3.64:1 AA large text Lc 63.9 Content text, not long reading
#798F1F text on black 5.76:1 AA Lc -37.8 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

    #D5DDC3

    oklch(88.4% 0.036 121.1)

  4. Step 300

    300

    #BAC898

    oklch(81% 0.067 121.1)

  5. Step 400

    400

    #97AB5D

    oklch(70.8% 0.106 121)

  6. Step 500

    500 (this color)

    #798F1F

    oklch(61.2% 0.134 120.5)

  7. Step 600

    600

    #697E00

    oklch(55.6% 0.133 120.6)

  8. Step 700

    700

    #586A00

    oklch(49.2% 0.117 120.6)

  9. Step 800

    800

    #485700

    oklch(42.9% 0.102 120.5)

  10. Step 900

    900

    #3B4803

    oklch(37.7% 0.088 120.8)

  11. Step 950

    950

    #232A07

    oklch(27% 0.055 119.9)

Export this scale for Tailwind in the Tailwind colors tool

#798F1F 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)#9886020.048
Deuteranopia (no green cones)#96862A0.051
Tritanopia (no blue cones)#80877A0.114
Achromatopsia (no color)#8686860.135

Harmonies

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

Complementary

The opposite hue (180°).

  • #798F1F

    #798F1F

    oklch(61.2% 0.134 120.5)

  • #916FC7

    #916FC7

    oklch(61.2% 0.133 300.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #798F1F

    #798F1F

    oklch(61.2% 0.134 120.5)

  • #A07F00

    #A07F00

    oklch(61.1% 0.125 90.4)

  • #3A9A57

    #3A9A57

    oklch(61.3% 0.135 150.4)

Open the analogous palette in the generator

Split complementary

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

  • #798F1F

    #798F1F

    oklch(61.2% 0.134 120.5)

  • #667DD4

    #667DD4

    oklch(61.2% 0.135 270.8)

  • #B063A9

    #B063A9

    oklch(61.1% 0.134 330.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #798F1F

    #798F1F

    oklch(61.2% 0.134 120.5)

  • #198CCC

    #198CCC

    oklch(61.2% 0.135 240.7)

  • #C35D80

    #C35D80

    oklch(61.2% 0.135 0.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #798F1F

    #798F1F

    oklch(61.2% 0.134 120.5)

  • #0094A7

    #0094A7

    oklch(61.1% 0.106 210.6)

  • #916FC7

    #916FC7

    oklch(61.2% 0.133 300.3)

  • #C76151

    #C76151

    oklch(61.2% 0.133 30.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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