#7F6B16#7F6B16

#7F6B16 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.2% C 0.101 H 94.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7F6B16
RGBrgb(127, 107, 22)
HSLhsl(49, 70%, 29%)
HSVhsv(49, 83%, 50%)
CMYKcmyk(0%, 15.7%, 82.7%, 50.2%)
CIE-LABlab(45.75, -1.14, 46.57)
CIE-LCHlch(45.75, 46.58, 91.40°)
OKLaboklab(53.2% -0.0085 0.1009)
OKLCHoklch(53.2% 0.101 94.8)
XYZxyz(14.1557, 15.0862, 2.9252)
Luminance0.1509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6B16 #162A7F
analogous
#7F3616 #7F6B16 #5F7F16
triadic
#7F6B16 #167F6B #6B167F
tetradic
#7F6B16 #167F36 #162A7F #7F165F
square
#7F6B16 #167F36 #162A7F #7F165F
split-complementary
#7F6B16 #165F7F #36167F
monochromatic
#1A1605 #4B3F0D #7F6B16 #B3971F #DCBC34

Accessibility & contrast

On white

5.23
#7F6B16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7F6B16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6B16
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6B16#FFFFFF#000000##FFFFFF
##7F6B161.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776902
Deuteranopia (green-blind)
#7C6F1C
Tritanopia (blue-blind)
#8A625B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f6b16;
/* rgb */ color: rgb(127, 107, 22);
/* oklch */ color: oklch(53.2% 0.101 94.8);
Tailwind
colors: {
  custom: {
    50: '#a8955c',
    500: '#7f6b16',
    950: '#000000',
  },
}
SCSS
$custom: #7f6b16;
$custom-light: #a8955c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6b16",
  "rgb": {
    "r": 127,
    "g": 107,
    "b": 22
  },
  "hsl": {
    "h": 48.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53201,
    "c": 0.10121,
    "h": 94.8
  },
  "luminance": 0.15085
}

Semantic roles & 50–950 ramp

primary
#7F6B16
secondary
#3D54B4
accent
#5DED3B
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6B16

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

Preview Lab → · Contrast checker → · Palette generator →

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