#7F8B16#7F8B16

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

Color values

HEX#7F8B16
RGBrgb(127, 139, 22)
HSLhsl(66, 73%, 32%)
HSVhsv(66, 84%, 55%)
CMYKcmyk(8.6%, 0%, 84.2%, 45.5%)
CIE-LABlab(55.11, -18.68, 54.76)
CIE-LCHlch(55.11, 57.86, 108.84°)
OKLaboklab(60.66% -0.0574 0.1185)
OKLCHoklch(60.66% 0.132 115.8)
XYZxyz(18.1304, 23.0355, 4.2501)
Luminance0.2303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8B16 #22168B
analogous
#8B5D16 #7F8B16 #458B16
triadic
#7F8B16 #167F8B #8B167F
tetradic
#7F8B16 #168B5D #22168B #8B1645
square
#7F8B16 #168B5D #22168B #8B1645
split-complementary
#7F8B16 #16458B #5D168B
monochromatic
#1E2105 #4F560E #7F8B16 #AFC01E #CFE03B

Accessibility & contrast

On white

3.75
#7F8B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8B16#FFFFFF#000000##000000
##7F8B161.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8b16;
/* rgb */ color: rgb(127, 139, 22);
/* oklch */ color: oklch(60.7% 0.132 115.8);
Tailwind
colors: {
  custom: {
    50: '#a8ac60',
    500: '#7f8b16',
    950: '#000000',
  },
}
SCSS
$custom: #7f8b16;
$custom-light: #a8ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8b16",
  "rgb": {
    "r": 127,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 66.154,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60663,
    "c": 0.13167,
    "h": 115.8
  },
  "luminance": 0.23035
}

Semantic roles & 50–950 ramp

primary
#7F8B16
secondary
#4B3EBF
accent
#38EF4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8B16

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

Preview Lab → · Contrast checker → · Palette generator →

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