#7C871B#7C871B

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

Color values

HEX#7C871B
RGBrgb(124, 135, 27)
HSLhsl(66, 67%, 32%)
HSVhsv(66, 80%, 53%)
CMYKcmyk(8.1%, 0%, 80%, 47.1%)
CIE-LABlab(53.70, -17.75, 51.96)
CIE-LCHlch(53.70, 54.91, 108.86°)
OKLaboklab(59.48% -0.0543 0.1136)
OKLCHoklch(59.48% 0.126 115.6)
XYZxyz(17.1745, 21.6924, 4.3190)
Luminance0.2169 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C871B #261B87
analogous
#875C1B #7C871B #46871B
triadic
#7C871B #1B7C87 #871B7C
tetradic
#7C871B #1B875C #261B87 #871B46
square
#7C871B #1B875C #261B87 #871B46
split-complementary
#7C871B #1B4687 #5C1B87
monochromatic
#1E2107 #4D5411 #7C871B #ABBA25 #CAD943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C871B#FFFFFF#000000##000000
##7C871B1.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)
#918000
Deuteranopia (green-blind)
#908125
Tritanopia (blue-blind)
#847F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c871b;
/* rgb */ color: rgb(124, 135, 27);
/* oklch */ color: oklch(59.5% 0.126 115.6);
Tailwind
colors: {
  custom: {
    50: '#a5a962',
    500: '#7c871b',
    950: '#000000',
  },
}
SCSS
$custom: #7c871b;
$custom-light: #a5a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7c871b",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 66.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59478,
    "c": 0.12587,
    "h": 115.6
  },
  "luminance": 0.21692
}

Semantic roles & 50–950 ramp

primary
#7C871B
secondary
#5044BA
accent
#3EEA50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C871B

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

Preview Lab → · Contrast checker → · Palette generator →

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