#7E8E17#7E8E17

#7E8E17 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.3% C 0.135 H 117.6°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7E8E17
RGBrgb(126, 142, 23)
HSLhsl(68, 72%, 32%)
HSVhsv(68, 84%, 56%)
CMYKcmyk(11.3%, 0%, 83.8%, 44.3%)
CIE-LABlab(55.93, -20.63, 55.17)
CIE-LCHlch(55.93, 58.90, 110.51°)
OKLaboklab(61.31% -0.0626 0.1196)
OKLCHoklch(61.31% 0.135 117.6)
XYZxyz(18.4323, 23.8437, 4.4417)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E17 #27178E
analogous
#8E6217 #7E8E17 #438E17
triadic
#7E8E17 #177E8E #8E177E
tetradic
#7E8E17 #178E62 #27178E #8E1743
square
#7E8E17 #178E62 #27178E #8E1743
split-complementary
#7E8E17 #17438E #62178E
monochromatic
#212506 #4F590E #7E8E17 #ADC320 #CAE03F

Accessibility & contrast

On white

3.64
#7E8E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#7E8E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E17
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E17#FFFFFF#000000##000000
##7E8E171.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#978724
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e17;
/* rgb */ color: rgb(126, 142, 23);
/* oklch */ color: oklch(61.3% 0.135 117.6);
Tailwind
colors: {
  custom: {
    50: '#a7af61',
    500: '#7e8e17',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e17;
$custom-light: #a7af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e17",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 68.067,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61306,
    "c": 0.13501,
    "h": 117.6
  },
  "luminance": 0.23843
}

Semantic roles & 50–950 ramp

primary
#7E8E17
secondary
#5240C0
accent
#39EF51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8E17

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

Preview Lab → · Contrast checker → · Palette generator →

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