#7F871A#7F871A

#7F871A 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#7F871A
RGBrgb(127, 135, 26)
HSLhsl(64, 68%, 32%)
HSVhsv(64, 81%, 53%)
CMYKcmyk(5.9%, 0%, 80.7%, 47.1%)
CIE-LABlab(53.94, -16.44, 52.58)
CIE-LCHlch(53.94, 55.09, 107.37°)
OKLaboklab(59.73% -0.0509 0.1146)
OKLCHoklch(59.73% 0.125 114)
XYZxyz(17.6034, 21.9149, 4.2798)
Luminance0.2192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F871A #221A87
analogous
#87591A #7F871A #49871A
triadic
#7F871A #1A7F87 #871A7F
tetradic
#7F871A #1A8759 #221A87 #871A49
square
#7F871A #1A8759 #221A87 #871A49
split-complementary
#7F871A #1A4987 #591A87
monochromatic
#1E2006 #4F5410 #7F871A #AFBA24 #CFDA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F871A#FFFFFF#000000##000000
##7F871A1.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)
#918224
Tritanopia (blue-blind)
#887E73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f871a;
/* rgb */ color: rgb(127, 135, 26);
/* oklch */ color: oklch(59.7% 0.125 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a961',
    500: '#7f871a',
    950: '#000000',
  },
}
SCSS
$custom: #7f871a;
$custom-light: #a7a961;
$custom-dark: #000000;
JSON
{
  "hex": "#7f871a",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 64.404,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59727,
    "c": 0.12537,
    "h": 114
  },
  "luminance": 0.21915
}

Semantic roles & 50–950 ramp

primary
#7F871A
secondary
#4B42BA
accent
#3DEB4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F871A

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

Preview Lab → · Contrast checker → · Palette generator →

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