#7E6E1B#7E6E1B

#7E6E1B is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.8% C 0.101 H 97.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7E6E1B
RGBrgb(126, 110, 27)
HSLhsl(50, 65%, 30%)
HSVhsv(50, 79%, 49%)
CMYKcmyk(0%, 12.7%, 78.6%, 50.6%)
CIE-LABlab(46.54, -3.13, 45.44)
CIE-LCHlch(46.54, 45.55, 93.94°)
OKLaboklab(53.81% -0.0135 0.0996)
OKLCHoklch(53.81% 0.101 97.7)
XYZxyz(14.3787, 15.6674, 3.3034)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6E1B #1B2B7E
analogous
#7E3C1B #7E6E1B #5D7E1B
triadic
#7E6E1B #1B7E6E #6E1B7E
tetradic
#7E6E1B #1B7E3C #1B2B7E #7E1B5D
square
#7E6E1B #1B7E3C #1B2B7E #7E1B5D
split-complementary
#7E6E1B #1B5D7E #3C1B7E
monochromatic
#191605 #4C4210 #7E6E1B #B09A26 #D6BD3E

Accessibility & contrast

On white

5.08
#7E6E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7E6E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6E1B
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6E1B#FFFFFF#000000##FFFFFF
##7E6E1B1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B0B
Deuteranopia (green-blind)
#7E7121
Tritanopia (blue-blind)
#88655E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e6e1b;
/* rgb */ color: rgb(126, 110, 27);
/* oklch */ color: oklch(53.8% 0.101 97.7);
Tailwind
colors: {
  custom: {
    50: '#a7975e',
    500: '#7e6e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e6e1b;
$custom-light: #a7975e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6e1b",
  "rgb": {
    "r": 126,
    "g": 110,
    "b": 27
  },
  "hsl": {
    "h": 50.303,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.53806,
    "c": 0.1005,
    "h": 97.7
  },
  "luminance": 0.15667
}

Semantic roles & 50–950 ramp

primary
#7E6E1B
secondary
#4355B2
accent
#5BE840
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7E6E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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