#7E8518#7E8518

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

Color values

HEX#7E8518
RGBrgb(126, 133, 24)
HSLhsl(64, 69%, 31%)
HSVhsv(64, 82%, 52%)
CMYKcmyk(5.3%, 0%, 82%, 47.8%)
CIE-LABlab(53.25, -15.92, 52.54)
CIE-LCHlch(53.25, 54.90, 106.86°)
OKLaboklab(59.16% -0.0496 0.1142)
OKLCHoklch(59.16% 0.124 113.5)
XYZxyz(17.1571, 21.2770, 4.0670)
Luminance0.2128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8518 #1F1885
analogous
#855518 #7E8518 #478518
triadic
#7E8518 #187E85 #85187E
tetradic
#7E8518 #188555 #1F1885 #851847
square
#7E8518 #188555 #1F1885 #851847
split-complementary
#7E8518 #184785 #551885
monochromatic
#1C1D05 #4D510F #7E8518 #AFB921 #D1DC3C

Accessibility & contrast

On white

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

On black

5.26
#7E8518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8518
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8518#FFFFFF#000000##000000
##7E85181.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8518;
/* rgb */ color: rgb(126, 133, 24);
/* oklch */ color: oklch(59.2% 0.124 113.5);
Tailwind
colors: {
  custom: {
    50: '#a7a860',
    500: '#7e8518',
    950: '#000000',
  },
}
SCSS
$custom: #7e8518;
$custom-light: #a7a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8518",
  "rgb": {
    "r": 126,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 63.853,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59155,
    "c": 0.12446,
    "h": 113.5
  },
  "luminance": 0.21277
}

Semantic roles & 50–950 ramp

primary
#7E8518
secondary
#4840B9
accent
#3CEC47
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E8518

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

Preview Lab → · Contrast checker → · Palette generator →

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