#7F8E1D#7F8E1D

#7F8E1D is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.4% C 0.132 H 117.3°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7F8E1D
RGBrgb(127, 142, 29)
HSLhsl(68, 66%, 34%)
HSVhsv(68, 80%, 56%)
CMYKcmyk(10.6%, 0%, 79.6%, 44.3%)
CIE-LABlab(56.03, -19.96, 53.54)
CIE-LCHlch(56.03, 57.14, 110.45°)
OKLaboklab(61.42% -0.0604 0.1172)
OKLCHoklch(61.42% 0.132 117.3)
XYZxyz(18.6476, 23.9470, 4.8020)
Luminance0.2395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8E1D #2C1D8E
analogous
#8E641D #7F8E1D #468E1D
triadic
#7F8E1D #1D7F8E #8E1D7F
tetradic
#7F8E1D #1D8E64 #2C1D8E #8E1D46
square
#7F8E1D #1D8E64 #2C1D8E #8E1D46
split-complementary
#7F8E1D #1D468E #641D8E
monochromatic
#242808 #525B13 #7F8E1D #ACC127 #C7DA4B

Accessibility & contrast

On white

3.63
#7F8E1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#7F8E1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8E1D
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8E1D#FFFFFF#000000##000000
##7F8E1D1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#878679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8e1d;
/* rgb */ color: rgb(127, 142, 29);
/* oklch */ color: oklch(61.4% 0.132 117.3);
Tailwind
colors: {
  custom: {
    50: '#a7af64',
    500: '#7f8e1d',
    950: '#000000',
  },
}
SCSS
$custom: #7f8e1d;
$custom-light: #a7af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8e1d",
  "rgb": {
    "r": 127,
    "g": 142,
    "b": 29
  },
  "hsl": {
    "h": 67.965,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61417,
    "c": 0.1318,
    "h": 117.3
  },
  "luminance": 0.23947
}

Semantic roles & 50–950 ramp

primary
#7F8E1D
secondary
#594ABD
accent
#3FE955
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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