#7E6A17#7E6A17

#7E6A17 is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.9% C 0.100 H 94.5°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7E6A17
RGBrgb(126, 106, 23)
HSLhsl(48, 69%, 29%)
HSVhsv(48, 82%, 49%)
CMYKcmyk(0%, 15.9%, 81.7%, 50.6%)
CIE-LABlab(45.37, -1.00, 45.84)
CIE-LCHlch(45.37, 45.85, 91.25°)
OKLaboklab(52.87% -0.0079 0.0996)
OKLCHoklch(52.87% 0.1 94.5)
XYZxyz(13.9137, 14.8064, 2.9355)
Luminance0.1481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6A17 #172B7E
analogous
#7E3717 #7E6A17 #5F7E17
triadic
#7E6A17 #177E6A #6A177E
tetradic
#7E6A17 #177E37 #172B7E #7E175F
square
#7E6A17 #177E37 #172B7E #7E175F
split-complementary
#7E6A17 #175F7E #37177E
monochromatic
#1A1605 #4A3E0E #7E6A17 #B29620 #DABA35

Accessibility & contrast

On white

5.30
#7E6A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7E6A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6A17
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6A17#FFFFFF#000000##FFFFFF
##7E6A171.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766804
Deuteranopia (green-blind)
#7B6E1D
Tritanopia (blue-blind)
#89615A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e6a17;
/* rgb */ color: rgb(126, 106, 23);
/* oklch */ color: oklch(52.9% 0.100 94.5);
Tailwind
colors: {
  custom: {
    50: '#a7945c',
    500: '#7e6a17',
    950: '#000000',
  },
}
SCSS
$custom: #7e6a17;
$custom-light: #a7945c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6a17",
  "rgb": {
    "r": 126,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 48.35,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52874,
    "c": 0.09986,
    "h": 94.5
  },
  "luminance": 0.14806
}

Semantic roles & 50–950 ramp

primary
#7E6A17
secondary
#3E55B3
accent
#5EEC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6A17

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

Preview Lab → · Contrast checker → · Palette generator →

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