#79871B#79871B

#79871B 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#79871B
RGBrgb(121, 135, 27)
HSLhsl(68, 67%, 32%)
HSVhsv(68, 80%, 53%)
CMYKcmyk(10.4%, 0%, 80%, 47.1%)
CIE-LABlab(53.46, -19.10, 51.66)
CIE-LCHlch(53.46, 55.08, 110.29°)
OKLaboklab(59.23% -0.0578 0.113)
OKLCHoklch(59.23% 0.127 117.1)
XYZxyz(16.7474, 21.4722, 4.2990)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#79871B #291B87
analogous
#875F1B #79871B #43871B
triadic
#79871B #1B7987 #871B79
tetradic
#79871B #1B875F #291B87 #871B43
square
#79871B #1B875F #291B87 #871B43
split-complementary
#79871B #1B4387 #5F1B87
monochromatic
#1E2107 #4B5411 #79871B #A7BA25 #C6D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##79871B#FFFFFF#000000##000000
##79871B1.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: #79871b;
/* rgb */ color: rgb(121, 135, 27);
/* oklch */ color: oklch(59.2% 0.127 117.1);
Tailwind
colors: {
  custom: {
    50: '#a3a962',
    500: '#79871b',
    950: '#000000',
  },
}
SCSS
$custom: #79871b;
$custom-light: #a3a962;
$custom-dark: #000000;
JSON
{
  "hex": "#79871b",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 67.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59229,
    "c": 0.12696,
    "h": 117.1
  },
  "luminance": 0.21472
}

Semantic roles & 50–950 ramp

primary
#79871B
secondary
#5344BA
accent
#3EEA54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #79871B

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

Preview Lab → · Contrast checker → · Palette generator →

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