#7F8A16#7F8A16

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

Color values

HEX#7F8A16
RGBrgb(127, 138, 22)
HSLhsl(66, 73%, 31%)
HSVhsv(66, 84%, 54%)
CMYKcmyk(8%, 0%, 84.1%, 45.9%)
CIE-LABlab(54.81, -18.16, 54.50)
CIE-LCHlch(54.81, 57.45, 108.43°)
OKLaboklab(60.42% -0.056 0.118)
OKLCHoklch(60.42% 0.131 115.4)
XYZxyz(17.9862, 22.7472, 4.2021)
Luminance0.2275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A16 #21168A
analogous
#8A5B16 #7F8A16 #458A16
triadic
#7F8A16 #167F8A #8A167F
tetradic
#7F8A16 #168A5B #21168A #8A1645
square
#7F8A16 #168A5B #21168A #8A1645
split-complementary
#7F8A16 #16458A #5B168A
monochromatic
#1E2005 #4E550E #7F8A16 #B0BF1E #D0E03B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8A16#FFFFFF#000000##000000
##7F8A161.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)
#948422
Tritanopia (blue-blind)
#888175
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a16;
/* rgb */ color: rgb(127, 138, 22);
/* oklch */ color: oklch(60.4% 0.131 115.4);
Tailwind
colors: {
  custom: {
    50: '#a8ac60',
    500: '#7f8a16',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a16;
$custom-light: #a8ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a16",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 65.69,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.60424,
    "c": 0.13056,
    "h": 115.4
  },
  "luminance": 0.22747
}

Semantic roles & 50–950 ramp

primary
#7F8A16
secondary
#4A3EBE
accent
#39EF4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8A16

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

Preview Lab → · Contrast checker → · Palette generator →

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