#7F871B#7F871B

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

Color values

HEX#7F871B
RGBrgb(127, 135, 27)
HSLhsl(64, 67%, 32%)
HSVhsv(64, 80%, 53%)
CMYKcmyk(5.9%, 0%, 80%, 47.1%)
CIE-LABlab(53.94, -16.40, 52.27)
CIE-LCHlch(53.94, 54.78, 107.42°)
OKLaboklab(59.73% -0.0507 0.1141)
OKLCHoklch(59.73% 0.125 114)
XYZxyz(17.6147, 21.9195, 4.3397)
Luminance0.2192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F871B #231B87
analogous
#87591B #7F871B #49871B
triadic
#7F871B #1B7F87 #871B7F
tetradic
#7F871B #1B8759 #231B87 #871B49
square
#7F871B #1B8759 #231B87 #871B49
split-complementary
#7F871B #1B4987 #591B87
monochromatic
#1F2107 #4F5411 #7F871B #AFBA25 #CED943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F871B#FFFFFF#000000##000000
##7F871B1.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)
#918225
Tritanopia (blue-blind)
#887F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f871b;
/* rgb */ color: rgb(127, 135, 27);
/* oklch */ color: oklch(59.7% 0.125 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a962',
    500: '#7f871b',
    950: '#000000',
  },
}
SCSS
$custom: #7f871b;
$custom-light: #a7a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7f871b",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 64.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59733,
    "c": 0.12486,
    "h": 114
  },
  "luminance": 0.21919
}

Semantic roles & 50–950 ramp

primary
#7F871B
secondary
#4C44BA
accent
#3EEA4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F871B

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

Preview Lab → · Contrast checker → · Palette generator →

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