#7D871E#7D871E

#7D871E 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#7D871E
RGBrgb(125, 135, 30)
HSLhsl(66, 64%, 32%)
HSVhsv(66, 78%, 53%)
CMYKcmyk(7.4%, 0%, 77.8%, 47.1%)
CIE-LABlab(53.79, -17.17, 51.10)
CIE-LCHlch(53.79, 53.90, 108.58°)
OKLaboklab(59.58% -0.0525 0.1122)
OKLCHoklch(59.58% 0.124 115.1)
XYZxyz(17.3563, 21.7820, 4.5181)
Luminance0.2178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D871E #281E87
analogous
#875C1E #7D871E #49871E
triadic
#7D871E #1E7D87 #871E7D
tetradic
#7D871E #1E875C #281E87 #871E49
square
#7D871E #1E875C #281E87 #871E49
split-complementary
#7D871E #1E4987 #5C1E87
monochromatic
#202308 #4F5513 #7D871E #ABB929 #C9D749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D871E#FFFFFF#000000##000000
##7D871E1.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)
#918004
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#867F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7d871e;
/* rgb */ color: rgb(125, 135, 30);
/* oklch */ color: oklch(59.6% 0.124 115.1);
Tailwind
colors: {
  custom: {
    50: '#a6a963',
    500: '#7d871e',
    950: '#000000',
  },
}
SCSS
$custom: #7d871e;
$custom-light: #a6a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7d871e",
  "rgb": {
    "r": 125,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 65.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5958,
    "c": 0.1239,
    "h": 115.1
  },
  "luminance": 0.21782
}

Semantic roles & 50–950 ramp

primary
#7D871E
secondary
#5348B9
accent
#41E751
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D871E

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

Preview Lab → · Contrast checker → · Palette generator →

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