#7E7517#7E7517

#7E7517 is a mid, moderate yellow. Relative luminance 0.172; OKLCH L 55.4% C 0.109 H 103.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7E7517
RGBrgb(126, 117, 23)
HSLhsl(55, 69%, 29%)
HSVhsv(55, 82%, 49%)
CMYKcmyk(0%, 7.1%, 81.7%, 50.6%)
CIE-LABlab(48.54, -7.25, 48.68)
CIE-LCHlch(48.54, 49.21, 98.47°)
OKLaboklab(55.39% -0.0255 0.1057)
OKLCHoklch(55.39% 0.109 103.6)
XYZxyz(15.1208, 17.2207, 3.3379)
Luminance0.1722 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7517 #17207E
analogous
#7E4217 #7E7517 #547E17
triadic
#7E7517 #177E75 #75177E
tetradic
#7E7517 #177E42 #17207E #7E1754
square
#7E7517 #177E42 #17207E #7E1754
split-complementary
#7E7517 #17547E #42177E
monochromatic
#1A1805 #4A450E #7E7517 #B2A520 #DACC35

Accessibility & contrast

On white

4.73
#7E7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7E7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7517
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7517#FFFFFF#000000##FFFFFF
##7E75171.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#83751F
Tritanopia (blue-blind)
#886C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e7517;
/* rgb */ color: rgb(126, 117, 23);
/* oklch */ color: oklch(55.4% 0.109 103.6);
Tailwind
colors: {
  custom: {
    50: '#a79c5e',
    500: '#7e7517',
    950: '#000000',
  },
}
SCSS
$custom: #7e7517;
$custom-light: #a79c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7517",
  "rgb": {
    "r": 126,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 54.757,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.55388,
    "c": 0.10871,
    "h": 103.6
  },
  "luminance": 0.1722
}

Semantic roles & 50–950 ramp

primary
#7E7517
secondary
#3E48B3
accent
#4BEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7517

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

Preview Lab → · Contrast checker → · Palette generator →

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