#7E871C#7E871C

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

Color values

HEX#7E871C
RGBrgb(126, 135, 28)
HSLhsl(65, 66%, 32%)
HSVhsv(65, 79%, 53%)
CMYKcmyk(6.7%, 0%, 79.3%, 47.1%)
CIE-LABlab(53.87, -16.81, 51.85)
CIE-LCHlch(53.87, 54.51, 107.96°)
OKLaboklab(59.65% -0.0517 0.1134)
OKLCHoklch(59.65% 0.125 114.5)
XYZxyz(17.4783, 21.8477, 4.3947)
Luminance0.2185 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E871C #251C87
analogous
#875B1C #7E871C #49871C
triadic
#7E871C #1C7E87 #871C7E
tetradic
#7E871C #1C875B #251C87 #871C49
square
#7E871C #1C875B #251C87 #871C49
split-complementary
#7E871C #1C4987 #5B1C87
monochromatic
#1F2207 #4F5411 #7E871C #ADBA27 #CCD845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E871C#FFFFFF#000000##000000
##7E871C1.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)
#918000
Deuteranopia (green-blind)
#918226
Tritanopia (blue-blind)
#877F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e871c;
/* rgb */ color: rgb(126, 135, 28);
/* oklch */ color: oklch(59.7% 0.125 114.5);
Tailwind
colors: {
  custom: {
    50: '#a7a962',
    500: '#7e871c',
    950: '#000000',
  },
}
SCSS
$custom: #7e871c;
$custom-light: #a7a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7e871c",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 65.047,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.59653,
    "c": 0.12466,
    "h": 114.5
  },
  "luminance": 0.21847
}

Semantic roles & 50–950 ramp

primary
#7E871C
secondary
#4F45BA
accent
#3FE94D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E871C

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

Preview Lab → · Contrast checker → · Palette generator →

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