#7E8517#7E8517

#7E8517 is a mid, vivid yellow. Relative luminance 0.213; OKLCH L 59.2% C 0.125 H 113.5°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7E8517
RGBrgb(126, 133, 23)
HSLhsl(64, 71%, 31%)
HSVhsv(64, 83%, 52%)
CMYKcmyk(5.3%, 0%, 82.7%, 47.8%)
CIE-LABlab(53.25, -15.96, 52.83)
CIE-LCHlch(53.25, 55.19, 106.81°)
OKLaboklab(59.15% -0.0498 0.1146)
OKLCHoklch(59.15% 0.125 113.5)
XYZxyz(17.1469, 21.2729, 4.0133)
Luminance0.2127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8517 #1E1785
analogous
#855517 #7E8517 #478517
triadic
#7E8517 #177E85 #85177E
tetradic
#7E8517 #178555 #1E1785 #851747
square
#7E8517 #178555 #1E1785 #851747
split-complementary
#7E8517 #174785 #551785
monochromatic
#1B1D05 #4D510E #7E8517 #AFB920 #D2DD3A

Accessibility & contrast

On white

4.00
#7E8517 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#7E8517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8517
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8517#FFFFFF#000000##000000
##7E85171.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#877C71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8517;
/* rgb */ color: rgb(126, 133, 23);
/* oklch */ color: oklch(59.2% 0.125 113.5);
Tailwind
colors: {
  custom: {
    50: '#a7a860',
    500: '#7e8517',
    950: '#000000',
  },
}
SCSS
$custom: #7e8517;
$custom-light: #a7a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8517",
  "rgb": {
    "r": 126,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 63.818,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5915,
    "c": 0.12492,
    "h": 113.5
  },
  "luminance": 0.21273
}

Semantic roles & 50–950 ramp

primary
#7E8517
secondary
#473FB9
accent
#3BED46
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8517

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

Preview Lab → · Contrast checker → · Palette generator →

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