#7E8D17#7E8D17

#7E8D17 is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.1% C 0.134 H 117.2°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7E8D17
RGBrgb(126, 141, 23)
HSLhsl(68, 72%, 32%)
HSVhsv(68, 84%, 55%)
CMYKcmyk(10.6%, 0%, 83.7%, 44.7%)
CIE-LABlab(55.63, -20.12, 54.91)
CIE-LCHlch(55.63, 58.48, 110.13°)
OKLaboklab(61.07% -0.0612 0.1191)
OKLCHoklch(61.07% 0.134 117.2)
XYZxyz(18.2842, 23.5475, 4.3924)
Luminance0.2355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D17 #26178D
analogous
#8D6117 #7E8D17 #438D17
triadic
#7E8D17 #177E8D #8D177E
tetradic
#7E8D17 #178D61 #26178D #8D1743
square
#7E8D17 #178D61 #26178D #8D1743
split-complementary
#7E8D17 #17438D #61178D
monochromatic
#202406 #4F580E #7E8D17 #ADC220 #CBE03F

Accessibility & contrast

On white

3.68
#7E8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#7E8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D17
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D17#FFFFFF#000000##000000
##7E8D171.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#868578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d17;
/* rgb */ color: rgb(126, 141, 23);
/* oklch */ color: oklch(61.1% 0.134 117.2);
Tailwind
colors: {
  custom: {
    50: '#a7ae61',
    500: '#7e8d17',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d17;
$custom-light: #a7ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d17",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 67.627,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61065,
    "c": 0.13388,
    "h": 117.2
  },
  "luminance": 0.23547
}

Semantic roles & 50–950 ramp

primary
#7E8D17
secondary
#5040C0
accent
#39EF50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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