#7E7D17#7E7D17

#7E7D17 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.3% C 0.116 H 109.0°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E7D17
RGBrgb(126, 125, 23)
HSLhsl(59, 69%, 29%)
HSVhsv(59, 82%, 49%)
CMYKcmyk(0%, 0.8%, 81.7%, 50.6%)
CIE-LABlab(50.88, -11.66, 50.75)
CIE-LCHlch(50.88, 52.08, 102.94°)
OKLaboklab(57.26% -0.0379 0.1101)
OKLCHoklch(57.26% 0.116 109)
XYZxyz(16.0931, 19.1652, 3.6620)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7D17 #17187E
analogous
#7E4917 #7E7D17 #4C7E17
triadic
#7E7D17 #177E7D #7D177E
tetradic
#7E7D17 #177E49 #17187E #7E174C
square
#7E7D17 #177E49 #17187E #7E174C
split-complementary
#7E7D17 #174C7E #49177E
monochromatic
#1A1A05 #4A4A0E #7E7D17 #B2B020 #DAD935

Accessibility & contrast

On white

4.35
#7E7D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#7E7D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7D17
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7D17#FFFFFF#000000##000000
##7E7D171.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#897B20
Tritanopia (blue-blind)
#88746A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e7d17;
/* rgb */ color: rgb(126, 125, 23);
/* oklch */ color: oklch(57.3% 0.116 109.0);
Tailwind
colors: {
  custom: {
    50: '#a7a25f',
    500: '#7e7d17',
    950: '#000000',
  },
}
SCSS
$custom: #7e7d17;
$custom-light: #a7a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7d17",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 59.417,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57256,
    "c": 0.11645,
    "h": 109
  },
  "luminance": 0.19165
}

Semantic roles & 50–950 ramp

primary
#7E7D17
secondary
#3E3FB3
accent
#3EEC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7E7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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