#79871F#79871F

#79871F is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.3% C 0.125 H 117.2°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#79871F
RGBrgb(121, 135, 31)
HSLhsl(68, 63%, 33%)
HSVhsv(68, 77%, 53%)
CMYKcmyk(10.4%, 0%, 77%, 47.1%)
CIE-LABlab(53.48, -18.91, 50.35)
CIE-LCHlch(53.48, 53.78, 110.59°)
OKLaboklab(59.25% -0.057 0.111)
OKLCHoklch(59.25% 0.125 117.2)
XYZxyz(16.7969, 21.4920, 4.5596)
Luminance0.2149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#79871F #2D1F87
analogous
#87611F #79871F #45871F
triadic
#79871F #1F7987 #871F79
tetradic
#79871F #1F8761 #2D1F87 #871F45
square
#79871F #1F8761 #2D1F87 #871F45
split-complementary
#79871F #1F4587 #611F87
monochromatic
#202308 #4C5514 #79871F #A6B92A #C3D64B

Accessibility & contrast

On white

3.96
#79871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#79871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #79871F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##79871F#FFFFFF#000000##000000
##79871F1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F07
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#817F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #79871f;
/* rgb */ color: rgb(121, 135, 31);
/* oklch */ color: oklch(59.3% 0.125 117.2);
Tailwind
colors: {
  custom: {
    50: '#a3a963',
    500: '#79871f',
    950: '#000000',
  },
}
SCSS
$custom: #79871f;
$custom-light: #a3a963;
$custom-dark: #000000;
JSON
{
  "hex": "#79871f",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 68.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59253,
    "c": 0.12475,
    "h": 117.2
  },
  "luminance": 0.21492
}

Semantic roles & 50–950 ramp

primary
#79871F
secondary
#584AB8
accent
#42E658
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #79871F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#79871F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva