#7C871E#7C871E

#7C871E is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.124 H 115.6°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7C871E
RGBrgb(124, 135, 30)
HSLhsl(66, 64%, 32%)
HSVhsv(66, 78%, 53%)
CMYKcmyk(8.1%, 0%, 77.8%, 47.1%)
CIE-LABlab(53.71, -17.62, 50.99)
CIE-LCHlch(53.71, 53.95, 109.06°)
OKLaboklab(59.5% -0.0537 0.1121)
OKLCHoklch(59.5% 0.124 115.6)
XYZxyz(17.2110, 21.7070, 4.5113)
Luminance0.2171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C871E #291E87
analogous
#875E1E #7C871E #47871E
triadic
#7C871E #1E7C87 #871E7C
tetradic
#7C871E #1E875E #291E87 #871E47
square
#7C871E #1E875E #291E87 #871E47
split-complementary
#7C871E #1E4787 #5E1E87
monochromatic
#202308 #4E5513 #7C871E #AAB929 #C8D749

Accessibility & contrast

On white

3.93
#7C871E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#7C871E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C871E
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C871E#FFFFFF#000000##000000
##7C871E1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918004
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#847F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c871e;
/* rgb */ color: rgb(124, 135, 30);
/* oklch */ color: oklch(59.5% 0.124 115.6);
Tailwind
colors: {
  custom: {
    50: '#a5a963',
    500: '#7c871e',
    950: '#000000',
  },
}
SCSS
$custom: #7c871e;
$custom-light: #a5a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7c871e",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 66.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59496,
    "c": 0.12425,
    "h": 115.6
  },
  "luminance": 0.21707
}

Semantic roles & 50–950 ramp

primary
#7C871E
secondary
#5448B9
accent
#41E752
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C871E

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

Preview Lab → · Contrast checker → · Palette generator →

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