#7F8817#7F8817

#7F8817 is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 60.0% C 0.128 H 114.4°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7F8817
RGBrgb(127, 136, 23)
HSLhsl(65, 71%, 31%)
HSVhsv(65, 83%, 53%)
CMYKcmyk(6.6%, 0%, 83.1%, 46.7%)
CIE-LABlab(54.22, -17.08, 53.71)
CIE-LCHlch(54.22, 56.36, 107.64°)
OKLaboklab(59.95% -0.0529 0.1164)
OKLCHoklch(59.95% 0.128 114.4)
XYZxyz(17.7118, 22.1826, 4.1591)
Luminance0.2218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8817 #201788
analogous
#885817 #7F8817 #468817
triadic
#7F8817 #177F88 #88177F
tetradic
#7F8817 #178858 #201788 #881746
square
#7F8817 #178858 #201788 #881746
split-complementary
#7F8817 #174688 #581788
monochromatic
#1D1F05 #4E540E #7F8817 #B0BC20 #D1DE3B

Accessibility & contrast

On white

3.86
#7F8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#7F8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8817
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8817#FFFFFF#000000##000000
##7F88171.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#928322
Tritanopia (blue-blind)
#887F74
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7f8817;
/* rgb */ color: rgb(127, 136, 23);
/* oklch */ color: oklch(60.0% 0.128 114.4);
Tailwind
colors: {
  custom: {
    50: '#a8aa60',
    500: '#7f8817',
    950: '#000000',
  },
}
SCSS
$custom: #7f8817;
$custom-light: #a8aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8817",
  "rgb": {
    "r": 127,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 64.779,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59951,
    "c": 0.1279,
    "h": 114.4
  },
  "luminance": 0.22182
}

Semantic roles & 50–950 ramp

primary
#7F8817
secondary
#493FBC
accent
#3AEE48
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8817

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

Preview Lab → · Contrast checker → · Palette generator →

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