#7C871F#7C871F

#7C871F 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#7C871F
RGBrgb(124, 135, 31)
HSLhsl(66, 63%, 33%)
HSVhsv(66, 77%, 53%)
CMYKcmyk(8.1%, 0%, 77%, 47.1%)
CIE-LABlab(53.72, -17.57, 50.65)
CIE-LCHlch(53.72, 53.62, 109.13°)
OKLaboklab(59.5% -0.0535 0.1115)
OKLCHoklch(59.5% 0.124 115.6)
XYZxyz(17.2239, 21.7122, 4.5796)
Luminance0.2171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C871F #2A1F87
analogous
#875E1F #7C871F #48871F
triadic
#7C871F #1F7C87 #871F7C
tetradic
#7C871F #1F875E #2A1F87 #871F48
square
#7C871F #1F875E #2A1F87 #871F48
split-complementary
#7C871F #1F4887 #5E1F87
monochromatic
#212308 #4E5514 #7C871F #AAB92A #C7D64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C871F#FFFFFF#000000##000000
##7C871F1.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)
#918007
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#847F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c871f;
/* rgb */ color: rgb(124, 135, 31);
/* oklch */ color: oklch(59.5% 0.124 115.6);
Tailwind
colors: {
  custom: {
    50: '#a5a964',
    500: '#7c871f',
    950: '#000000',
  },
}
SCSS
$custom: #7c871f;
$custom-light: #a5a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7c871f",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 66.346,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59502,
    "c": 0.12367,
    "h": 115.6
  },
  "luminance": 0.21712
}

Semantic roles & 50–950 ramp

primary
#7C871F
secondary
#554AB8
accent
#42E653
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C871F

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

Preview Lab → · Contrast checker → · Palette generator →

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