#7F8A17#7F8A17

#7F8A17 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.130 H 115.4°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7F8A17
RGBrgb(127, 138, 23)
HSLhsl(66, 71%, 32%)
HSVhsv(66, 83%, 54%)
CMYKcmyk(8%, 0%, 83.3%, 45.9%)
CIE-LABlab(54.82, -18.13, 54.23)
CIE-LCHlch(54.82, 57.18, 108.48°)
OKLaboklab(60.43% -0.0558 0.1176)
OKLCHoklch(60.43% 0.13 115.4)
XYZxyz(17.9961, 22.7512, 4.2538)
Luminance0.2275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A17 #22178A
analogous
#8A5C17 #7F8A17 #468A17
triadic
#7F8A17 #177F8A #8A177F
tetradic
#7F8A17 #178A5C #22178A #8A1746
square
#7F8A17 #178A5C #22178A #8A1746
split-complementary
#7F8A17 #17468A #5C178A
monochromatic
#1E2106 #4F560E #7F8A17 #AFBE20 #CFDF3D

Accessibility & contrast

On white

3.78
#7F8A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7F8A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A17
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A17#FFFFFF#000000##000000
##7F8A171.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#948423
Tritanopia (blue-blind)
#888175
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a17;
/* rgb */ color: rgb(127, 138, 23);
/* oklch */ color: oklch(60.4% 0.130 115.4);
Tailwind
colors: {
  custom: {
    50: '#a8ac61',
    500: '#7f8a17',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a17;
$custom-light: #a8ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a17",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 65.739,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60428,
    "c": 0.13012,
    "h": 115.4
  },
  "luminance": 0.22751
}

Semantic roles & 50–950 ramp

primary
#7F8A17
secondary
#4B3FBE
accent
#3AEE4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8A17

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

Preview Lab → · Contrast checker → · Palette generator →

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