#7F7816#7F7816

#7F7816 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.112 H 105.1°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7F7816
RGBrgb(127, 120, 22)
HSLhsl(56, 70%, 29%)
HSVhsv(56, 83%, 50%)
CMYKcmyk(0%, 5.5%, 82.7%, 50.2%)
CIE-LABlab(49.50, -8.49, 49.88)
CIE-LCHlch(49.50, 50.60, 99.66°)
OKLaboklab(56.18% -0.0291 0.108)
OKLCHoklch(56.18% 0.112 105.1)
XYZxyz(15.6144, 18.0035, 3.4114)
Luminance0.1800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7816 #161D7F
analogous
#7F4416 #7F7816 #527F16
triadic
#7F7816 #167F78 #78167F
tetradic
#7F7816 #167F44 #161D7F #7F1652
square
#7F7816 #167F44 #161D7F #7F1652
split-complementary
#7F7816 #16527F #44167F
monochromatic
#1A1905 #4B470D #7F7816 #B3A91F #DCD134

Accessibility & contrast

On white

4.56
#7F7816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7F7816 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7816
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7816#FFFFFF#000000##000000
##7F78161.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#86771E
Tritanopia (blue-blind)
#896F66
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f7816;
/* rgb */ color: rgb(127, 120, 22);
/* oklch */ color: oklch(56.2% 0.112 105.1);
Tailwind
colors: {
  custom: {
    50: '#a89e5e',
    500: '#7f7816',
    950: '#000000',
  },
}
SCSS
$custom: #7f7816;
$custom-light: #a89e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7816",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 56,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56176,
    "c": 0.11186,
    "h": 105.1
  },
  "luminance": 0.18003
}

Semantic roles & 50–950 ramp

primary
#7F7816
secondary
#3D45B4
accent
#46ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7816

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

Preview Lab → · Contrast checker → · Palette generator →

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