#79871A#79871A

#79871A is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.2% C 0.127 H 117.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#79871A
RGBrgb(121, 135, 26)
HSLhsl(68, 68%, 32%)
HSVhsv(68, 81%, 53%)
CMYKcmyk(10.4%, 0%, 80.7%, 47.1%)
CIE-LABlab(53.46, -19.14, 51.97)
CIE-LCHlch(53.46, 55.38, 110.22°)
OKLaboklab(59.22% -0.058 0.1135)
OKLCHoklch(59.22% 0.127 117.1)
XYZxyz(16.7360, 21.4677, 4.2391)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#79871A #281A87
analogous
#875F1A #79871A #43871A
triadic
#79871A #1A7987 #871A79
tetradic
#79871A #1A875F #281A87 #871A43
square
#79871A #1A875F #281A87 #871A43
split-complementary
#79871A #1A4387 #5F1A87
monochromatic
#1D2006 #4B5410 #79871A #A7BA24 #C7DA41

Accessibility & contrast

On white

3.97
#79871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#79871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #79871A
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##79871A#FFFFFF#000000##000000
##79871A1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #79871a;
/* rgb */ color: rgb(121, 135, 26);
/* oklch */ color: oklch(59.2% 0.127 117.1);
Tailwind
colors: {
  custom: {
    50: '#a3a961',
    500: '#79871a',
    950: '#000000',
  },
}
SCSS
$custom: #79871a;
$custom-light: #a3a961;
$custom-dark: #000000;
JSON
{
  "hex": "#79871a",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 67.706,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59224,
    "c": 0.12747,
    "h": 117.1
  },
  "luminance": 0.21467
}

Semantic roles & 50–950 ramp

primary
#79871A
secondary
#5242BA
accent
#3DEB53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #79871A

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

Preview Lab → · Contrast checker → · Palette generator →

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