#7F6E17#7F6E17

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

Color values

HEX#7F6E17
RGBrgb(127, 110, 23)
HSLhsl(50, 69%, 29%)
HSVhsv(50, 82%, 50%)
CMYKcmyk(0%, 13.4%, 81.9%, 50.2%)
CIE-LABlab(46.61, -2.82, 47.00)
CIE-LCHlch(46.61, 47.08, 93.43°)
OKLaboklab(53.88% -0.0131 0.102)
OKLCHoklch(53.88% 0.103 97.3)
XYZxyz(14.4838, 15.7265, 3.0831)
Luminance0.1573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6E17 #17287F
analogous
#7F3A17 #7F6E17 #5C7F17
triadic
#7F6E17 #177F6E #6E177F
tetradic
#7F6E17 #177F3A #17287F #7F175C
square
#7F6E17 #177F3A #17287F #7F175C
split-complementary
#7F6E17 #175C7F #3A177F
monochromatic
#1A1605 #4B410E #7F6E17 #B39B20 #DBC036

Accessibility & contrast

On white

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

On black

4.15
#7F6E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7F6E17#FFFFFF#000000##FFFFFF
##7F6E171.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f6e17;
/* rgb */ color: rgb(127, 110, 23);
/* oklch */ color: oklch(53.9% 0.103 97.3);
Tailwind
colors: {
  custom: {
    50: '#a8975d',
    500: '#7f6e17',
    950: '#000000',
  },
}
SCSS
$custom: #7f6e17;
$custom-light: #a8975d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6e17",
  "rgb": {
    "r": 127,
    "g": 110,
    "b": 23
  },
  "hsl": {
    "h": 50.192,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53884,
    "c": 0.10283,
    "h": 97.3
  },
  "luminance": 0.15726
}

Semantic roles & 50–950 ramp

primary
#7F6E17
secondary
#3E51B4
accent
#59EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6E17

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

Preview Lab → · Contrast checker → · Palette generator →

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