#7C871C#7C871C

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

Color values

HEX#7C871C
RGBrgb(124, 135, 28)
HSLhsl(66, 66%, 32%)
HSVhsv(66, 79%, 53%)
CMYKcmyk(8.1%, 0%, 79.3%, 47.1%)
CIE-LABlab(53.70, -17.71, 51.65)
CIE-LCHlch(53.70, 54.60, 108.93°)
OKLaboklab(59.48% -0.0541 0.1131)
OKLCHoklch(59.48% 0.125 115.6)
XYZxyz(17.1862, 21.6972, 4.3810)
Luminance0.2170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C871C #271C87
analogous
#875D1C #7C871C #47871C
triadic
#7C871C #1C7C87 #871C7C
tetradic
#7C871C #1C875D #271C87 #871C47
square
#7C871C #1C875D #271C87 #871C47
split-complementary
#7C871C #1C4787 #5D1C87
monochromatic
#1F2207 #4D5411 #7C871C #ABBA27 #C9D845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7c871c;
/* rgb */ color: rgb(124, 135, 28);
/* oklch */ color: oklch(59.5% 0.125 115.6);
Tailwind
colors: {
  custom: {
    50: '#a5a962',
    500: '#7c871c',
    950: '#000000',
  },
}
SCSS
$custom: #7c871c;
$custom-light: #a5a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7c871c",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 66.168,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.59484,
    "c": 0.12534,
    "h": 115.6
  },
  "luminance": 0.21697
}

Semantic roles & 50–950 ramp

primary
#7C871C
secondary
#5145BA
accent
#3FE951
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C871C

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

Preview Lab → · Contrast checker → · Palette generator →

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