#7F6E16#7F6E16

#7F6E16 is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.9% C 0.103 H 97.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7F6E16
RGBrgb(127, 110, 22)
HSLhsl(50, 70%, 29%)
HSVhsv(50, 83%, 50%)
CMYKcmyk(0%, 13.4%, 82.7%, 50.2%)
CIE-LABlab(46.61, -2.86, 47.33)
CIE-LCHlch(46.61, 47.42, 93.46°)
OKLaboklab(53.88% -0.0133 0.1025)
OKLCHoklch(53.88% 0.103 97.4)
XYZxyz(14.4739, 15.7226, 3.0313)
Luminance0.1572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6E16 #16277F
analogous
#7F3A16 #7F6E16 #5C7F16
triadic
#7F6E16 #167F6E #6E167F
tetradic
#7F6E16 #167F3A #16277F #7F165C
square
#7F6E16 #167F3A #16277F #7F165C
split-complementary
#7F6E16 #165C7F #3A167F
monochromatic
#1A1705 #4B410D #7F6E16 #B39B1F #DCC134

Accessibility & contrast

On white

5.07
#7F6E16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7F6E16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6E16
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6E16#FFFFFF#000000##FFFFFF
##7F6E161.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#7E711D
Tritanopia (blue-blind)
#8A655E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f6e16;
/* rgb */ color: rgb(127, 110, 22);
/* oklch */ color: oklch(53.9% 0.103 97.4);
Tailwind
colors: {
  custom: {
    50: '#a8975c',
    500: '#7f6e16',
    950: '#000000',
  },
}
SCSS
$custom: #7f6e16;
$custom-light: #a8975c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6e16",
  "rgb": {
    "r": 127,
    "g": 110,
    "b": 22
  },
  "hsl": {
    "h": 50.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53879,
    "c": 0.10335,
    "h": 97.4
  },
  "luminance": 0.15722
}

Semantic roles & 50–950 ramp

primary
#7F6E16
secondary
#3D50B4
accent
#57ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6E16

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

Preview Lab → · Contrast checker → · Palette generator →

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