#7C871D#7C871D

#7C871D 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#7C871D
RGBrgb(124, 135, 29)
HSLhsl(66, 65%, 32%)
HSVhsv(66, 79%, 53%)
CMYKcmyk(8.1%, 0%, 78.5%, 47.1%)
CIE-LABlab(53.71, -17.67, 51.32)
CIE-LCHlch(53.71, 54.28, 109.00°)
OKLaboklab(59.49% -0.0539 0.1126)
OKLCHoklch(59.49% 0.125 115.6)
XYZxyz(17.1984, 21.7020, 4.4451)
Luminance0.2170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C871D #281D87
analogous
#875D1D #7C871D #47871D
triadic
#7C871D #1D7C87 #871D7C
tetradic
#7C871D #1D875D #281D87 #871D47
square
#7C871D #1D875D #281D87 #871D47
split-complementary
#7C871D #1D4787 #5D1D87
monochromatic
#1F2207 #4E5512 #7C871D #AAB928 #C8D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C871D#FFFFFF#000000##000000
##7C871D1.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)
#918002
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#847F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c871d;
/* rgb */ color: rgb(124, 135, 29);
/* oklch */ color: oklch(59.5% 0.125 115.6);
Tailwind
colors: {
  custom: {
    50: '#a5a963',
    500: '#7c871d',
    950: '#000000',
  },
}
SCSS
$custom: #7c871d;
$custom-light: #a5a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7c871d",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 66.226,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5949,
    "c": 0.1248,
    "h": 115.6
  },
  "luminance": 0.21702
}

Semantic roles & 50–950 ramp

primary
#7C871D
secondary
#5246B9
accent
#40E852
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C871D

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

Preview Lab → · Contrast checker → · Palette generator →

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