#7E7017#7E7017

#7E7017 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.104 H 99.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E7017
RGBrgb(126, 112, 23)
HSLhsl(52, 69%, 29%)
HSVhsv(52, 82%, 49%)
CMYKcmyk(0%, 11.1%, 81.7%, 50.6%)
CIE-LABlab(47.09, -4.44, 47.38)
CIE-LCHlch(47.09, 47.59, 95.35°)
OKLaboklab(54.24% -0.0176 0.1029)
OKLCHoklch(54.24% 0.104 99.7)
XYZxyz(14.5537, 16.0865, 3.1489)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7017 #17257E
analogous
#7E3D17 #7E7017 #597E17
triadic
#7E7017 #177E70 #70177E
tetradic
#7E7017 #177E3D #17257E #7E1759
square
#7E7017 #177E3D #17257E #7E1759
split-complementary
#7E7017 #17597E #3D177E
monochromatic
#1A1705 #4A420E #7E7017 #B29E20 #DAC435

Accessibility & contrast

On white

4.98
#7E7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7E7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7017
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7017#FFFFFF#000000##FFFFFF
##7E70171.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#80721E
Tritanopia (blue-blind)
#88675F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e7017;
/* rgb */ color: rgb(126, 112, 23);
/* oklch */ color: oklch(54.2% 0.104 99.7);
Tailwind
colors: {
  custom: {
    50: '#a7985d',
    500: '#7e7017',
    950: '#000000',
  },
}
SCSS
$custom: #7e7017;
$custom-light: #a7985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7017",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 51.845,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54237,
    "c": 0.10438,
    "h": 99.7
  },
  "luminance": 0.16086
}

Semantic roles & 50–950 ramp

primary
#7E7017
secondary
#3E4EB3
accent
#54EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E7017

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

Preview Lab → · Contrast checker → · Palette generator →

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