#7F8D1A#7F8D1A

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

Color values

HEX#7F8D1A
RGBrgb(127, 141, 26)
HSLhsl(67, 69%, 33%)
HSVhsv(67, 82%, 55%)
CMYKcmyk(9.9%, 0%, 81.6%, 44.7%)
CIE-LABlab(55.72, -19.57, 54.17)
CIE-LCHlch(55.72, 57.60, 109.86°)
OKLaboklab(61.16% -0.0595 0.118)
OKLCHoklch(61.16% 0.132 116.8)
XYZxyz(18.4642, 23.6366, 4.5667)
Luminance0.2364 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D1A #281A8D
analogous
#8D611A #7F8D1A #468D1A
triadic
#7F8D1A #1A7F8D #8D1A7F
tetradic
#7F8D1A #1A8D61 #281A8D #8D1A46
square
#7F8D1A #1A8D61 #281A8D #8D1A46
split-complementary
#7F8D1A #1A468D #611A8D
monochromatic
#222607 #505910 #7F8D1A #AEC124 #CADD45

Accessibility & contrast

On white

3.67
#7F8D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8D1A#FFFFFF#000000##000000
##7F8D1A1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8d1a;
/* rgb */ color: rgb(127, 141, 26);
/* oklch */ color: oklch(61.2% 0.132 116.8);
Tailwind
colors: {
  custom: {
    50: '#a8ae62',
    500: '#7f8d1a',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d1a;
$custom-light: #a8ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d1a",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 67.304,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61161,
    "c": 0.13214,
    "h": 116.8
  },
  "luminance": 0.23636
}

Semantic roles & 50–950 ramp

primary
#7F8D1A
secondary
#5445BE
accent
#3CEC51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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