#7F8D1D#7F8D1D

#7F8D1D is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.2% C 0.131 H 116.8°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7F8D1D
RGBrgb(127, 141, 29)
HSLhsl(68, 66%, 33%)
HSVhsv(68, 79%, 55%)
CMYKcmyk(9.9%, 0%, 79.4%, 44.7%)
CIE-LABlab(55.74, -19.44, 53.26)
CIE-LCHlch(55.74, 56.70, 110.06°)
OKLaboklab(61.18% -0.059 0.1166)
OKLCHoklch(61.18% 0.131 116.8)
XYZxyz(18.4995, 23.6507, 4.7527)
Luminance0.2365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D1D #2B1D8D
analogous
#8D631D #7F8D1D #478D1D
triadic
#7F8D1D #1D7F8D #8D1D7F
tetradic
#7F8D1D #1D8D63 #2B1D8D #8D1D47
square
#7F8D1D #1D8D63 #2B1D8D #8D1D47
split-complementary
#7F8D1D #1D478D #631D8D
monochromatic
#242708 #515A13 #7F8D1D #ADC027 #C8DA4B

Accessibility & contrast

On white

3.66
#7F8D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#7F8D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D1D
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D1D#FFFFFF#000000##000000
##7F8D1D1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968628
Tritanopia (blue-blind)
#878578
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8d1d;
/* rgb */ color: rgb(127, 141, 29);
/* oklch */ color: oklch(61.2% 0.131 116.8);
Tailwind
colors: {
  custom: {
    50: '#a7ae64',
    500: '#7f8d1d',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d1d;
$custom-light: #a7ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d1d",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 67.5,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61177,
    "c": 0.13064,
    "h": 116.8
  },
  "luminance": 0.2365
}

Semantic roles & 50–950 ramp

primary
#7F8D1D
secondary
#584ABC
accent
#3FE954
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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