#7F871D#7F871D

#7F871D 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.39:1 contrast (WCAG AA passes).

Color values

HEX#7F871D
RGBrgb(127, 135, 29)
HSLhsl(65, 65%, 32%)
HSVhsv(65, 79%, 53%)
CMYKcmyk(5.9%, 0%, 78.5%, 47.1%)
CIE-LABlab(53.95, -16.32, 51.63)
CIE-LCHlch(53.95, 54.15, 107.54°)
OKLaboklab(59.74% -0.0503 0.1131)
OKLCHoklch(59.74% 0.124 114)
XYZxyz(17.6387, 21.9290, 4.4657)
Luminance0.2193 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F871D #251D87
analogous
#875A1D #7F871D #4A871D
triadic
#7F871D #1D7F87 #871D7F
tetradic
#7F871D #1D875A #251D87 #871D4A
square
#7F871D #1D875A #251D87 #871D4A
split-complementary
#7F871D #1D4A87 #5A1D87
monochromatic
#202207 #505512 #7F871D #AEB928 #CDD747

Accessibility & contrast

On white

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

On black

5.39
#7F871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F871D
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F871D#FFFFFF#000000##000000
##7F871D1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f871d;
/* rgb */ color: rgb(127, 135, 29);
/* oklch */ color: oklch(59.7% 0.124 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a963',
    500: '#7f871d',
    950: '#000000',
  },
}
SCSS
$custom: #7f871d;
$custom-light: #a7a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7f871d",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 64.528,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59744,
    "c": 0.12381,
    "h": 114
  },
  "luminance": 0.21929
}

Semantic roles & 50–950 ramp

primary
#7F871D
secondary
#4F46B9
accent
#40E84D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F871D

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

Preview Lab → · Contrast checker → · Palette generator →

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