#7E6717#7E6717

#7E6717 is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 52.2% C 0.098 H 91.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7E6717
RGBrgb(126, 103, 23)
HSLhsl(47, 69%, 29%)
HSVhsv(47, 82%, 49%)
CMYKcmyk(0%, 18.3%, 81.7%, 50.6%)
CIE-LABlab(44.52, 0.73, 45.07)
CIE-LCHlch(44.52, 45.07, 89.07°)
OKLaboklab(52.2% -0.003 0.0979)
OKLCHoklch(52.2% 0.098 91.7)
XYZxyz(13.6099, 14.1988, 2.8342)
Luminance0.1420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6717 #172E7E
analogous
#7E3417 #7E6717 #627E17
triadic
#7E6717 #177E67 #67177E
tetradic
#7E6717 #177E34 #172E7E #7E1762
square
#7E6717 #177E34 #172E7E #7E1762
split-complementary
#7E6717 #17627E #34177E
monochromatic
#1A1505 #4A3D0E #7E6717 #B29120 #DAB535

Accessibility & contrast

On white

5.47
#7E6717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7E6717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6717
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6717#FFFFFF#000000##FFFFFF
##7E67171.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736506
Deuteranopia (green-blind)
#796C1C
Tritanopia (blue-blind)
#895E58
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e6717;
/* rgb */ color: rgb(126, 103, 23);
/* oklch */ color: oklch(52.2% 0.098 91.7);
Tailwind
colors: {
  custom: {
    50: '#a7925c',
    500: '#7e6717',
    950: '#000000',
  },
}
SCSS
$custom: #7e6717;
$custom-light: #a7925c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6717",
  "rgb": {
    "r": 126,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 46.602,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52202,
    "c": 0.09795,
    "h": 91.7
  },
  "luminance": 0.14198
}

Semantic roles & 50–950 ramp

primary
#7E6717
secondary
#3E58B3
accent
#63EC3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7E6717

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

Preview Lab → · Contrast checker → · Palette generator →

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