#7C871A#7C871A

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

Color values

HEX#7C871A
RGBrgb(124, 135, 26)
HSLhsl(66, 68%, 32%)
HSVhsv(66, 81%, 53%)
CMYKcmyk(8.1%, 0%, 80.7%, 47.1%)
CIE-LABlab(53.69, -17.80, 52.27)
CIE-LCHlch(53.69, 55.22, 108.80°)
OKLaboklab(59.47% -0.0545 0.114)
OKLCHoklch(59.47% 0.126 115.5)
XYZxyz(17.1631, 21.6879, 4.2591)
Luminance0.2169 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C871A #251A87
analogous
#875C1A #7C871A #46871A
triadic
#7C871A #1A7C87 #871A7C
tetradic
#7C871A #1A875C #251A87 #871A46
square
#7C871A #1A875C #251A87 #871A46
split-complementary
#7C871A #1A4687 #5C1A87
monochromatic
#1E2006 #4D5410 #7C871A #ABBA24 #CBDA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C871A#FFFFFF#000000##000000
##7C871A1.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)
#908124
Tritanopia (blue-blind)
#847F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c871a;
/* rgb */ color: rgb(124, 135, 26);
/* oklch */ color: oklch(59.5% 0.126 115.5);
Tailwind
colors: {
  custom: {
    50: '#a5a961',
    500: '#7c871a',
    950: '#000000',
  },
}
SCSS
$custom: #7c871a;
$custom-light: #a5a961;
$custom-dark: #000000;
JSON
{
  "hex": "#7c871a",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 66.055,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59473,
    "c": 0.12638,
    "h": 115.5
  },
  "luminance": 0.21688
}

Semantic roles & 50–950 ramp

primary
#7C871A
secondary
#4F42BA
accent
#3DEB4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C871A

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

Preview Lab → · Contrast checker → · Palette generator →

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