#7D871C#7D871C

#7D871C is a mid, vivid yellow. Relative luminance 0.218; OKLCH L 59.6% C 0.125 H 115.0°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7D871C
RGBrgb(125, 135, 28)
HSLhsl(66, 66%, 32%)
HSVhsv(66, 79%, 53%)
CMYKcmyk(7.4%, 0%, 79.3%, 47.1%)
CIE-LABlab(53.78, -17.26, 51.75)
CIE-LCHlch(53.78, 54.55, 108.45°)
OKLaboklab(59.57% -0.0529 0.1132)
OKLCHoklch(59.57% 0.125 115)
XYZxyz(17.3315, 21.7721, 4.3878)
Luminance0.2177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D871C #261C87
analogous
#875B1C #7D871C #48871C
triadic
#7D871C #1C7D87 #871C7D
tetradic
#7D871C #1C875B #261C87 #871C48
square
#7D871C #1C875B #261C87 #871C48
split-complementary
#7D871C #1C4887 #5B1C87
monochromatic
#1F2207 #4E5411 #7D871C #ACBA27 #CBD845

Accessibility & contrast

On white

3.92
#7D871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#7D871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D871C
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D871C#FFFFFF#000000##000000
##7D871C1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#918126
Tritanopia (blue-blind)
#867F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7d871c;
/* rgb */ color: rgb(125, 135, 28);
/* oklch */ color: oklch(59.6% 0.125 115.0);
Tailwind
colors: {
  custom: {
    50: '#a6a962',
    500: '#7d871c',
    950: '#000000',
  },
}
SCSS
$custom: #7d871c;
$custom-light: #a6a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7d871c",
  "rgb": {
    "r": 125,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 65.607,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.59568,
    "c": 0.125,
    "h": 115
  },
  "luminance": 0.21772
}

Semantic roles & 50–950 ramp

primary
#7D871C
secondary
#5045BA
accent
#3FE94F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D871C

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

Preview Lab → · Contrast checker → · Palette generator →

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