#7E7E17#7E7E17

#7E7E17 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.117 H 109.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7E7E17
RGBrgb(126, 126, 23)
HSLhsl(60, 69%, 29%)
HSVhsv(60, 82%, 49%)
CMYKcmyk(0%, 0%, 81.7%, 50.6%)
CIE-LABlab(51.17, -12.21, 51.01)
CIE-LCHlch(51.17, 52.45, 103.46°)
OKLaboklab(57.49% -0.0394 0.1107)
OKLCHoklch(57.49% 0.117 109.6)
XYZxyz(16.2203, 19.4197, 3.7044)
Luminance0.1942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E17 #17177E
analogous
#7E4B17 #7E7E17 #4B7E17
triadic
#7E7E17 #177E7E #7E177E
tetradic
#7E7E17 #177E4B #17177E #7E174B
square
#7E7E17 #177E4B #17177E #7E174B
split-complementary
#7E7E17 #174B7E #4B177E
monochromatic
#1A1A05 #4A4A0E #7E7E17 #B2B220 #DADA35

Accessibility & contrast

On white

4.30
#7E7E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7E7E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7E17
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7E17#FFFFFF#000000##000000
##7E7E171.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8A7B20
Tritanopia (blue-blind)
#88756B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e17;
/* rgb */ color: rgb(126, 126, 23);
/* oklch */ color: oklch(57.5% 0.117 109.6);
Tailwind
colors: {
  custom: {
    50: '#a7a35f',
    500: '#7e7e17',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e17;
$custom-light: #a7a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e17",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 60,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57491,
    "c": 0.11747,
    "h": 109.6
  },
  "luminance": 0.19419
}

Semantic roles & 50–950 ramp

primary
#7E7E17
secondary
#3E3EB3
accent
#3CEC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7E7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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