#7F6F16#7F6F16

#7F6F16 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.1% C 0.104 H 98.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7F6F16
RGBrgb(127, 111, 22)
HSLhsl(51, 70%, 29%)
HSVhsv(51, 83%, 50%)
CMYKcmyk(0%, 12.6%, 82.7%, 50.2%)
CIE-LABlab(46.90, -3.43, 47.58)
CIE-LCHlch(46.90, 47.71, 94.12°)
OKLaboklab(54.11% -0.0149 0.103)
OKLCHoklch(54.11% 0.104 98.2)
XYZxyz(14.5824, 15.9396, 3.0675)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6F16 #16267F
analogous
#7F3B16 #7F6F16 #5B7F16
triadic
#7F6F16 #167F6F #6F167F
tetradic
#7F6F16 #167F3B #16267F #7F165B
square
#7F6F16 #167F3B #16267F #7F165B
split-complementary
#7F6F16 #165B7F #3B167F
monochromatic
#1A1705 #4B410D #7F6F16 #B39D1F #DCC234

Accessibility & contrast

On white

5.01
#7F6F16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7F6F16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6F16
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6F16#FFFFFF#000000##FFFFFF
##7F6F161.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#7F721D
Tritanopia (blue-blind)
#8A665F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f6f16;
/* rgb */ color: rgb(127, 111, 22);
/* oklch */ color: oklch(54.1% 0.104 98.2);
Tailwind
colors: {
  custom: {
    50: '#a8985c',
    500: '#7f6f16',
    950: '#000000',
  },
}
SCSS
$custom: #7f6f16;
$custom-light: #a8985c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6f16",
  "rgb": {
    "r": 127,
    "g": 111,
    "b": 22
  },
  "hsl": {
    "h": 50.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54106,
    "c": 0.10412,
    "h": 98.2
  },
  "luminance": 0.15939
}

Semantic roles & 50–950 ramp

primary
#7F6F16
secondary
#3D4FB4
accent
#56ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6F16

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

Preview Lab → · Contrast checker → · Palette generator →

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