#7D871D#7D871D

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

Color values

HEX#7D871D
RGBrgb(125, 135, 29)
HSLhsl(66, 65%, 32%)
HSVhsv(66, 79%, 53%)
CMYKcmyk(7.4%, 0%, 78.5%, 47.1%)
CIE-LABlab(53.79, -17.22, 51.43)
CIE-LCHlch(53.79, 54.23, 108.51°)
OKLaboklab(59.57% -0.0527 0.1127)
OKLCHoklch(59.57% 0.124 115.1)
XYZxyz(17.3437, 21.7769, 4.4519)
Luminance0.2178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D871D #271D87
analogous
#875C1D #7D871D #48871D
triadic
#7D871D #1D7D87 #871D7D
tetradic
#7D871D #1D875C #271D87 #871D48
square
#7D871D #1D875C #271D87 #871D48
split-complementary
#7D871D #1D4887 #5C1D87
monochromatic
#202207 #4E5512 #7D871D #ACB928 #CAD747

Accessibility & contrast

On white

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

On black

5.36
#7D871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D871D
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D871D#FFFFFF#000000##000000
##7D871D1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918002
Deuteranopia (green-blind)
#918127
Tritanopia (blue-blind)
#867F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7d871d;
/* rgb */ color: rgb(125, 135, 29);
/* oklch */ color: oklch(59.6% 0.124 115.1);
Tailwind
colors: {
  custom: {
    50: '#a6a963',
    500: '#7d871d',
    950: '#000000',
  },
}
SCSS
$custom: #7d871d;
$custom-light: #a6a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7d871d",
  "rgb": {
    "r": 125,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 65.66,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59574,
    "c": 0.12446,
    "h": 115.1
  },
  "luminance": 0.21777
}

Semantic roles & 50–950 ramp

primary
#7D871D
secondary
#5146B9
accent
#40E850
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D871D

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

Preview Lab → · Contrast checker → · Palette generator →

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