#7F8716#7F8716

#7F8716 is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.127 H 113.9°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7F8716
RGBrgb(127, 135, 22)
HSLhsl(64, 72%, 31%)
HSVhsv(64, 84%, 53%)
CMYKcmyk(5.9%, 0%, 83.7%, 47.1%)
CIE-LABlab(53.92, -16.59, 53.73)
CIE-LCHlch(53.92, 56.23, 107.16°)
OKLaboklab(59.71% -0.0516 0.1163)
OKLCHoklch(59.71% 0.127 113.9)
XYZxyz(17.5618, 21.8983, 4.0606)
Luminance0.2190 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8716 #1E1687
analogous
#875616 #7F8716 #468716
triadic
#7F8716 #167F87 #87167F
tetradic
#7F8716 #168756 #1E1687 #871646
square
#7F8716 #168756 #1E1687 #871646
split-complementary
#7F8716 #164687 #561687
monochromatic
#1C1E05 #4D520D #7F8716 #B1BC1F #D3DF39

Accessibility & contrast

On white

3.90
#7F8716 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7F8716 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8716
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8716#FFFFFF#000000##000000
##7F87161.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#918222
Tritanopia (blue-blind)
#887E73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f8716;
/* rgb */ color: rgb(127, 135, 22);
/* oklch */ color: oklch(59.7% 0.127 113.9);
Tailwind
colors: {
  custom: {
    50: '#a8a960',
    500: '#7f8716',
    950: '#000000',
  },
}
SCSS
$custom: #7f8716;
$custom-light: #a8a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8716",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 22
  },
  "hsl": {
    "h": 64.248,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59708,
    "c": 0.12724,
    "h": 113.9
  },
  "luminance": 0.21898
}

Semantic roles & 50–950 ramp

primary
#7F8716
secondary
#473EBB
accent
#39EF46
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8716

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

Preview Lab → · Contrast checker → · Palette generator →

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