#7F8D1E#7F8D1E

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

Color values

HEX#7F8D1E
RGBrgb(127, 141, 30)
HSLhsl(68, 65%, 34%)
HSVhsv(68, 79%, 55%)
CMYKcmyk(9.9%, 0%, 78.7%, 44.7%)
CIE-LABlab(55.74, -19.40, 52.95)
CIE-LCHlch(55.74, 56.39, 110.12°)
OKLaboklab(61.18% -0.0588 0.1161)
OKLCHoklch(61.18% 0.13 116.9)
XYZxyz(18.5121, 23.6558, 4.8189)
Luminance0.2366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D1E #2C1E8D
analogous
#8D631E #7F8D1E #478D1E
triadic
#7F8D1E #1E7F8D #8D1E7F
tetradic
#7F8D1E #1E8D63 #2C1E8D #8D1E47
square
#7F8D1E #1E8D63 #2C1E8D #8D1E47
split-complementary
#7F8D1E #1E478D #631E8D
monochromatic
#242809 #525B13 #7F8D1E #ACBF29 #C7D94C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8D1E#FFFFFF#000000##000000
##7F8D1E1.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: #7f8d1e;
/* rgb */ color: rgb(127, 141, 30);
/* oklch */ color: oklch(61.2% 0.130 116.9);
Tailwind
colors: {
  custom: {
    50: '#a7ae64',
    500: '#7f8d1e',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d1e;
$custom-light: #a7ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d1e",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 30
  },
  "hsl": {
    "h": 67.568,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61183,
    "c": 0.13011,
    "h": 116.9
  },
  "luminance": 0.23656
}

Semantic roles & 50–950 ramp

primary
#7F8D1E
secondary
#594BBC
accent
#40E855
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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