#7F8616#7F8616

#7F8616 is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.5% C 0.126 H 113.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7F8616
RGBrgb(127, 134, 22)
HSLhsl(64, 72%, 31%)
HSVhsv(64, 84%, 53%)
CMYKcmyk(5.2%, 0%, 83.6%, 47.5%)
CIE-LABlab(53.62, -16.07, 53.47)
CIE-LCHlch(53.62, 55.83, 106.72°)
OKLaboklab(59.47% -0.0502 0.1157)
OKLCHoklch(59.47% 0.126 113.4)
XYZxyz(17.4229, 21.6205, 4.0143)
Luminance0.2162 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8616 #1D1686
analogous
#865516 #7F8616 #478616
triadic
#7F8616 #167F86 #86167F
tetradic
#7F8616 #168655 #1D1686 #861647
square
#7F8616 #168655 #1D1686 #861647
split-complementary
#7F8616 #164786 #551686
monochromatic
#1B1D05 #4D510D #7F8616 #B1BB1F #D4DE38

Accessibility & contrast

On white

3.94
#7F8616 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7F8616 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8616
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8616#FFFFFF#000000##000000
##7F86161.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#918121
Tritanopia (blue-blind)
#887D72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f8616;
/* rgb */ color: rgb(127, 134, 22);
/* oklch */ color: oklch(59.5% 0.126 113.4);
Tailwind
colors: {
  custom: {
    50: '#a8a960',
    500: '#7f8616',
    950: '#000000',
  },
}
SCSS
$custom: #7f8616;
$custom-light: #a8a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8616",
  "rgb": {
    "r": 127,
    "g": 134,
    "b": 22
  },
  "hsl": {
    "h": 63.75,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5947,
    "c": 0.12615,
    "h": 113.4
  },
  "luminance": 0.2162
}

Semantic roles & 50–950 ramp

primary
#7F8616
secondary
#453EBA
accent
#39EF45
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8616

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

Preview Lab → · Contrast checker → · Palette generator →

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