#7F871C#7F871C

#7F871C is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.124 H 114.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7F871C
RGBrgb(127, 135, 28)
HSLhsl(64, 66%, 32%)
HSVhsv(64, 79%, 53%)
CMYKcmyk(5.9%, 0%, 79.3%, 47.1%)
CIE-LABlab(53.95, -16.36, 51.96)
CIE-LCHlch(53.95, 54.47, 107.48°)
OKLaboklab(59.74% -0.0505 0.1136)
OKLCHoklch(59.74% 0.124 114)
XYZxyz(17.6265, 21.9242, 4.4016)
Luminance0.2192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F871C #241C87
analogous
#875A1C #7F871C #4A871C
triadic
#7F871C #1C7F87 #871C7F
tetradic
#7F871C #1C875A #241C87 #871C4A
square
#7F871C #1C875A #241C87 #871C4A
split-complementary
#7F871C #1C4A87 #5A1C87
monochromatic
#202207 #4F5411 #7F871C #AFBA27 #CDD845

Accessibility & contrast

On white

3.90
#7F871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7F871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F871C
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F871C#FFFFFF#000000##000000
##7F871C1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#918226
Tritanopia (blue-blind)
#887F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f871c;
/* rgb */ color: rgb(127, 135, 28);
/* oklch */ color: oklch(59.7% 0.124 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a962',
    500: '#7f871c',
    950: '#000000',
  },
}
SCSS
$custom: #7f871c;
$custom-light: #a7a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7f871c",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 64.486,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.59739,
    "c": 0.12434,
    "h": 114
  },
  "luminance": 0.21924
}

Semantic roles & 50–950 ramp

primary
#7F871C
secondary
#4E45BA
accent
#3FE94C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F871C

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

Preview Lab → · Contrast checker → · Palette generator →

#7F871C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva