#7F8B17#7F8B17

#7F8B17 is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.7% C 0.131 H 115.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7F8B17
RGBrgb(127, 139, 23)
HSLhsl(66, 72%, 32%)
HSVhsv(66, 83%, 55%)
CMYKcmyk(8.6%, 0%, 83.5%, 45.5%)
CIE-LABlab(55.11, -18.65, 54.49)
CIE-LCHlch(55.11, 57.59, 108.89°)
OKLaboklab(60.67% -0.0572 0.1181)
OKLCHoklch(60.67% 0.131 115.9)
XYZxyz(18.1402, 23.0394, 4.3019)
Luminance0.2304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8B17 #23178B
analogous
#8B5D17 #7F8B17 #458B17
triadic
#7F8B17 #177F8B #8B177F
tetradic
#7F8B17 #178B5D #23178B #8B1745
square
#7F8B17 #178B5D #23178B #8B1745
split-complementary
#7F8B17 #17458B #5D178B
monochromatic
#1F2206 #4F560E #7F8B17 #AFC020 #CEDF3D

Accessibility & contrast

On white

3.74
#7F8B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#7F8B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8B17
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8B17#FFFFFF#000000##000000
##7F8B171.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948523
Tritanopia (blue-blind)
#888276
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8b17;
/* rgb */ color: rgb(127, 139, 23);
/* oklch */ color: oklch(60.7% 0.131 115.9);
Tailwind
colors: {
  custom: {
    50: '#a8ac61',
    500: '#7f8b17',
    950: '#000000',
  },
}
SCSS
$custom: #7f8b17;
$custom-light: #a8ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8b17",
  "rgb": {
    "r": 127,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 66.207,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60667,
    "c": 0.13124,
    "h": 115.9
  },
  "luminance": 0.23039
}

Semantic roles & 50–950 ramp

primary
#7F8B17
secondary
#4C3FBF
accent
#39EE4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8B17

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

Preview Lab → · Contrast checker → · Palette generator →

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