#7D871F#7D871F

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

Color values

HEX#7D871F
RGBrgb(125, 135, 31)
HSLhsl(66, 63%, 33%)
HSVhsv(66, 77%, 53%)
CMYKcmyk(7.4%, 0%, 77%, 47.1%)
CIE-LABlab(53.80, -17.13, 50.76)
CIE-LCHlch(53.80, 53.57, 108.65°)
OKLaboklab(59.59% -0.0523 0.1117)
OKLCHoklch(59.59% 0.123 115.1)
XYZxyz(17.3692, 21.7872, 4.5864)
Luminance0.2179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D871F #291F87
analogous
#875D1F #7D871F #49871F
triadic
#7D871F #1F7D87 #871F7D
tetradic
#7D871F #1F875D #291F87 #871F49
square
#7D871F #1F875D #291F87 #871F49
split-complementary
#7D871F #1F4987 #5D1F87
monochromatic
#212308 #4F5514 #7D871F #ABB92A #C8D64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D871F#FFFFFF#000000##000000
##7D871F1.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)
#918006
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#857F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7d871f;
/* rgb */ color: rgb(125, 135, 31);
/* oklch */ color: oklch(59.6% 0.123 115.1);
Tailwind
colors: {
  custom: {
    50: '#a6a964',
    500: '#7d871f',
    950: '#000000',
  },
}
SCSS
$custom: #7d871f;
$custom-light: #a6a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7d871f",
  "rgb": {
    "r": 125,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 65.769,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59586,
    "c": 0.12333,
    "h": 115.1
  },
  "luminance": 0.21787
}

Semantic roles & 50–950 ramp

primary
#7D871F
secondary
#544AB8
accent
#42E652
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D871F

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

Preview Lab → · Contrast checker → · Palette generator →

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