#7E871F#7E871F

#7E871F is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.123 H 114.5°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7E871F
RGBrgb(126, 135, 31)
HSLhsl(65, 63%, 33%)
HSVhsv(65, 77%, 53%)
CMYKcmyk(6.7%, 0%, 77%, 47.1%)
CIE-LABlab(53.88, -16.68, 50.86)
CIE-LCHlch(53.88, 53.53, 108.15°)
OKLaboklab(59.67% -0.0511 0.1119)
OKLCHoklch(59.67% 0.123 114.5)
XYZxyz(17.5160, 21.8628, 4.5933)
Luminance0.2186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E871F #281F87
analogous
#875C1F #7E871F #4A871F
triadic
#7E871F #1F7E87 #871F7E
tetradic
#7E871F #1F875C #281F87 #871F4A
square
#7E871F #1F875C #281F87 #871F4A
split-complementary
#7E871F #1F4A87 #5C1F87
monochromatic
#212308 #505514 #7E871F #ACB92A #CAD64B

Accessibility & contrast

On white

3.91
#7E871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#7E871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E871F
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E871F#FFFFFF#000000##000000
##7E871F1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918006
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#877F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e871f;
/* rgb */ color: rgb(126, 135, 31);
/* oklch */ color: oklch(59.7% 0.123 114.5);
Tailwind
colors: {
  custom: {
    50: '#a7a964',
    500: '#7e871f',
    950: '#000000',
  },
}
SCSS
$custom: #7e871f;
$custom-light: #a7a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7e871f",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 65.192,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59671,
    "c": 0.123,
    "h": 114.5
  },
  "luminance": 0.21862
}

Semantic roles & 50–950 ramp

primary
#7E871F
secondary
#534AB8
accent
#42E650
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E871F

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

Preview Lab → · Contrast checker → · Palette generator →

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