#7E7B17#7E7B17

#7E7B17 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.114 H 107.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7E7B17
RGBrgb(126, 123, 23)
HSLhsl(58, 69%, 29%)
HSVhsv(58, 82%, 49%)
CMYKcmyk(0%, 2.4%, 81.7%, 50.6%)
CIE-LABlab(50.29, -10.57, 50.23)
CIE-LCHlch(50.29, 51.33, 101.89°)
OKLaboklab(56.79% -0.0348 0.109)
OKLCHoklch(56.79% 0.114 107.7)
XYZxyz(15.8424, 18.6640, 3.5784)
Luminance0.1866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7B17 #171A7E
analogous
#7E4817 #7E7B17 #4E7E17
triadic
#7E7B17 #177E7B #7B177E
tetradic
#7E7B17 #177E48 #171A7E #7E174E
square
#7E7B17 #177E48 #171A7E #7E174E
split-complementary
#7E7B17 #174E7E #48177E
monochromatic
#1A1905 #4A480E #7E7B17 #B2AE20 #DAD535

Accessibility & contrast

On white

4.44
#7E7B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#7E7B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7B17
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7B17#FFFFFF#000000##000000
##7E7B171.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#887920
Tritanopia (blue-blind)
#887269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7b17;
/* rgb */ color: rgb(126, 123, 23);
/* oklch */ color: oklch(56.8% 0.114 107.7);
Tailwind
colors: {
  custom: {
    50: '#a7a05e',
    500: '#7e7b17',
    950: '#000000',
  },
}
SCSS
$custom: #7e7b17;
$custom-light: #a7a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7b17",
  "rgb": {
    "r": 126,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 58.252,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56786,
    "c": 0.11443,
    "h": 107.7
  },
  "luminance": 0.18663
}

Semantic roles & 50–950 ramp

primary
#7E7B17
secondary
#3E42B3
accent
#41EC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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