#7F6816#7F6816

#7F6816 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.5% C 0.099 H 92.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F6816
RGBrgb(127, 104, 22)
HSLhsl(47, 70%, 29%)
HSVhsv(47, 83%, 50%)
CMYKcmyk(0%, 18.1%, 82.7%, 50.2%)
CIE-LABlab(44.90, 0.59, 45.81)
CIE-LCHlch(44.90, 45.81, 89.26°)
OKLaboklab(52.53% -0.0035 0.0992)
OKLCHoklch(52.53% 0.099 92)
XYZxyz(13.8483, 14.4714, 2.8228)
Luminance0.1447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6816 #162D7F
analogous
#7F3416 #7F6816 #627F16
triadic
#7F6816 #167F68 #68167F
tetradic
#7F6816 #167F34 #162D7F #7F1662
square
#7F6816 #167F34 #162D7F #7F1662
split-complementary
#7F6816 #16627F #34167F
monochromatic
#1A1505 #4B3D0D #7F6816 #B3931F #DCB734

Accessibility & contrast

On white

5.39
#7F6816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7F6816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6816
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6816#FFFFFF#000000##FFFFFF
##7F68161.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756603
Deuteranopia (green-blind)
#7A6D1B
Tritanopia (blue-blind)
#8A5F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f6816;
/* rgb */ color: rgb(127, 104, 22);
/* oklch */ color: oklch(52.5% 0.099 92.0);
Tailwind
colors: {
  custom: {
    50: '#a8925b',
    500: '#7f6816',
    950: '#000000',
  },
}
SCSS
$custom: #7f6816;
$custom-light: #a8925b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6816",
  "rgb": {
    "r": 127,
    "g": 104,
    "b": 22
  },
  "hsl": {
    "h": 46.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52529,
    "c": 0.09928,
    "h": 92
  },
  "luminance": 0.14471
}

Semantic roles & 50–950 ramp

primary
#7F6816
secondary
#3D57B4
accent
#62ED3B
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7F6816

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

Preview Lab → · Contrast checker → · Palette generator →

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