#7D871B#7D871B

#7D871B is a mid, vivid yellow. Relative luminance 0.218; OKLCH L 59.6% C 0.126 H 115.0°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7D871B
RGBrgb(125, 135, 27)
HSLhsl(66, 67%, 32%)
HSVhsv(66, 80%, 53%)
CMYKcmyk(7.4%, 0%, 80%, 47.1%)
CIE-LABlab(53.78, -17.30, 52.06)
CIE-LCHlch(53.78, 54.87, 108.38°)
OKLaboklab(59.56% -0.0531 0.1137)
OKLCHoklch(59.56% 0.126 115)
XYZxyz(17.3198, 21.7674, 4.3258)
Luminance0.2177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D871B #251B87
analogous
#875B1B #7D871B #47871B
triadic
#7D871B #1B7D87 #871B7D
tetradic
#7D871B #1B875B #251B87 #871B47
square
#7D871B #1B875B #251B87 #871B47
split-complementary
#7D871B #1B4787 #5B1B87
monochromatic
#1F2107 #4E5411 #7D871B #ACBA25 #CBD943

Accessibility & contrast

On white

3.92
#7D871B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#7D871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D871B
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D871B#FFFFFF#000000##000000
##7D871B1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#918125
Tritanopia (blue-blind)
#867F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d871b;
/* rgb */ color: rgb(125, 135, 27);
/* oklch */ color: oklch(59.6% 0.126 115.0);
Tailwind
colors: {
  custom: {
    50: '#a6a962',
    500: '#7d871b',
    950: '#000000',
  },
}
SCSS
$custom: #7d871b;
$custom-light: #a6a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7d871b",
  "rgb": {
    "r": 125,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 65.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59563,
    "c": 0.12552,
    "h": 115
  },
  "luminance": 0.21767
}

Semantic roles & 50–950 ramp

primary
#7D871B
secondary
#4F44BA
accent
#3EEA4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D871B

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

Preview Lab → · Contrast checker → · Palette generator →

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