#7F8016#7F8016

#7F8016 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.120 H 110.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7F8016
RGBrgb(127, 128, 22)
HSLhsl(61, 71%, 29%)
HSVhsv(61, 83%, 50%)
CMYKcmyk(0.8%, 0%, 82.8%, 49.8%)
CIE-LABlab(51.85, -12.86, 51.93)
CIE-LCHlch(51.85, 53.50, 103.91°)
OKLaboklab(58.05% -0.0413 0.1124)
OKLCHoklch(58.05% 0.12 110.2)
XYZxyz(16.6170, 20.0088, 3.7457)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8016 #171680
analogous
#804C16 #7F8016 #4A8016
triadic
#7F8016 #167F80 #80167F
tetradic
#7F8016 #16804C #171680 #80164A
square
#7F8016 #16804C #171680 #80164A
split-complementary
#7F8016 #164A80 #4C1680
monochromatic
#1A1A04 #4B4C0D #7F8016 #B3B41F #DBDC34

Accessibility & contrast

On white

4.20
#7F8016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7F8016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8016
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8016#FFFFFF#000000##000000
##7F80161.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D20
Tritanopia (blue-blind)
#89776D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8016;
/* rgb */ color: rgb(127, 128, 22);
/* oklch */ color: oklch(58.0% 0.120 110.2);
Tailwind
colors: {
  custom: {
    50: '#a8a45f',
    500: '#7f8016',
    950: '#000000',
  },
}
SCSS
$custom: #7f8016;
$custom-light: #a8a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8016",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 60.566,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.58048,
    "c": 0.11977,
    "h": 110.2
  },
  "luminance": 0.20008
}

Semantic roles & 50–950 ramp

primary
#7F8016
secondary
#3E3DB5
accent
#3AED3C
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8016

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

Preview Lab → · Contrast checker → · Palette generator →

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