#7F6D16#7F6D16

#7F6D16 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.7% C 0.103 H 96.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7F6D16
RGBrgb(127, 109, 22)
HSLhsl(50, 70%, 29%)
HSVhsv(50, 83%, 50%)
CMYKcmyk(0%, 14.2%, 82.7%, 50.2%)
CIE-LABlab(46.32, -2.29, 47.08)
CIE-LCHlch(46.32, 47.13, 92.78°)
OKLaboklab(53.65% -0.0117 0.102)
OKLCHoklch(53.65% 0.103 96.6)
XYZxyz(14.3666, 15.5080, 2.9955)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6D16 #16287F
analogous
#7F3916 #7F6D16 #5D7F16
triadic
#7F6D16 #167F6D #6D167F
tetradic
#7F6D16 #167F39 #16287F #7F165D
square
#7F6D16 #167F39 #16287F #7F165D
split-complementary
#7F6D16 #165D7F #39167F
monochromatic
#1A1605 #4B400D #7F6D16 #B39A1F #DCBF34

Accessibility & contrast

On white

5.12
#7F6D16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7F6D16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6D16
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6D16#FFFFFF#000000##FFFFFF
##7F6D161.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A01
Deuteranopia (green-blind)
#7E701C
Tritanopia (blue-blind)
#8A645D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f6d16;
/* rgb */ color: rgb(127, 109, 22);
/* oklch */ color: oklch(53.7% 0.103 96.6);
Tailwind
colors: {
  custom: {
    50: '#a8965c',
    500: '#7f6d16',
    950: '#000000',
  },
}
SCSS
$custom: #7f6d16;
$custom-light: #a8965c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6d16",
  "rgb": {
    "r": 127,
    "g": 109,
    "b": 22
  },
  "hsl": {
    "h": 49.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53652,
    "c": 0.10262,
    "h": 96.6
  },
  "luminance": 0.15507
}

Semantic roles & 50–950 ramp

primary
#7F6D16
secondary
#3D51B4
accent
#59ED3B
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6D16

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

Preview Lab → · Contrast checker → · Palette generator →

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