#7E7717#7E7717

#7E7717 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.9% C 0.111 H 105.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E7717
RGBrgb(126, 119, 23)
HSLhsl(56, 69%, 29%)
HSVhsv(56, 82%, 49%)
CMYKcmyk(0%, 5.6%, 81.7%, 50.6%)
CIE-LABlab(49.12, -8.37, 49.20)
CIE-LCHlch(49.12, 49.90, 99.65°)
OKLaboklab(55.85% -0.0287 0.1068)
OKLCHoklch(55.85% 0.111 105)
XYZxyz(15.3563, 17.6918, 3.4164)
Luminance0.1769 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7717 #171E7E
analogous
#7E4417 #7E7717 #527E17
triadic
#7E7717 #177E77 #77177E
tetradic
#7E7717 #177E44 #171E7E #7E1752
square
#7E7717 #177E44 #171E7E #7E1752
split-complementary
#7E7717 #17527E #44177E
monochromatic
#1A1805 #4A460E #7E7717 #B2A820 #DACF35

Accessibility & contrast

On white

4.63
#7E7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7E7717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7717
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7717#FFFFFF#000000##FFFFFF
##7E77171.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#85771F
Tritanopia (blue-blind)
#886E65
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7717;
/* rgb */ color: rgb(126, 119, 23);
/* oklch */ color: oklch(55.9% 0.111 105.0);
Tailwind
colors: {
  custom: {
    50: '#a79d5e',
    500: '#7e7717',
    950: '#000000',
  },
}
SCSS
$custom: #7e7717;
$custom-light: #a79d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7717",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 55.922,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.55852,
    "c": 0.11055,
    "h": 105
  },
  "luminance": 0.17691
}

Semantic roles & 50–950 ramp

primary
#7E7717
secondary
#3E46B3
accent
#48EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7717

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

Preview Lab → · Contrast checker → · Palette generator →

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