#7E6D17#7E6D17

#7E6D17 is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.6% C 0.102 H 97.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7E6D17
RGBrgb(126, 109, 23)
HSLhsl(50, 69%, 29%)
HSVhsv(50, 82%, 49%)
CMYKcmyk(0%, 13.5%, 81.7%, 50.6%)
CIE-LABlab(46.23, -2.73, 46.61)
CIE-LCHlch(46.23, 46.69, 93.35°)
OKLaboklab(53.55% -0.0128 0.1012)
OKLCHoklch(53.55% 0.102 97.2)
XYZxyz(14.2282, 15.4355, 3.0404)
Luminance0.1543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6D17 #17287E
analogous
#7E3A17 #7E6D17 #5C7E17
triadic
#7E6D17 #177E6D #6D177E
tetradic
#7E6D17 #177E3A #17287E #7E175C
square
#7E6D17 #177E3A #17287E #7E175C
split-complementary
#7E6D17 #175C7E #3A177E
monochromatic
#1A1605 #4A400E #7E6D17 #B29A20 #DABF35

Accessibility & contrast

On white

5.14
#7E6D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7E6D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6D17
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6D17#FFFFFF#000000##FFFFFF
##7E6D171.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A03
Deuteranopia (green-blind)
#7D701D
Tritanopia (blue-blind)
#89645D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e6d17;
/* rgb */ color: rgb(126, 109, 23);
/* oklch */ color: oklch(53.6% 0.102 97.2);
Tailwind
colors: {
  custom: {
    50: '#a7965c',
    500: '#7e6d17',
    950: '#000000',
  },
}
SCSS
$custom: #7e6d17;
$custom-light: #a7965c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6d17",
  "rgb": {
    "r": 126,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 50.097,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53553,
    "c": 0.10202,
    "h": 97.2
  },
  "luminance": 0.15435
}

Semantic roles & 50–950 ramp

primary
#7E6D17
secondary
#3E51B3
accent
#59EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6D17

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

Preview Lab → · Contrast checker → · Palette generator →

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