#7E7A17#7E7A17

#7E7A17 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.6% C 0.113 H 107.1°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E7A17
RGBrgb(126, 122, 23)
HSLhsl(58, 69%, 29%)
HSVhsv(58, 82%, 49%)
CMYKcmyk(0%, 3.2%, 81.7%, 50.6%)
CIE-LABlab(50.00, -10.02, 49.97)
CIE-LCHlch(50.00, 50.97, 101.34°)
OKLaboklab(56.55% -0.0333 0.1084)
OKLCHoklch(56.55% 0.113 107.1)
XYZxyz(15.7190, 18.4171, 3.5373)
Luminance0.1842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7A17 #171B7E
analogous
#7E4717 #7E7A17 #4F7E17
triadic
#7E7A17 #177E7A #7A177E
tetradic
#7E7A17 #177E47 #171B7E #7E174F
square
#7E7A17 #177E47 #171B7E #7E174F
split-complementary
#7E7A17 #174F7E #47177E
monochromatic
#1A1905 #4A480E #7E7A17 #B2AC20 #DAD435

Accessibility & contrast

On white

4.48
#7E7A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7E7A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7A17
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7A17#FFFFFF#000000##000000
##7E7A171.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#877920
Tritanopia (blue-blind)
#887168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e7a17;
/* rgb */ color: rgb(126, 122, 23);
/* oklch */ color: oklch(56.6% 0.113 107.1);
Tailwind
colors: {
  custom: {
    50: '#a7a05e',
    500: '#7e7a17',
    950: '#000000',
  },
}
SCSS
$custom: #7e7a17;
$custom-light: #a7a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7a17",
  "rgb": {
    "r": 126,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 57.67,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56552,
    "c": 0.11344,
    "h": 107.1
  },
  "luminance": 0.18417
}

Semantic roles & 50–950 ramp

primary
#7E7A17
secondary
#3E43B3
accent
#43EC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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