#7E8418#7E8418

#7E8418 is a mid, vivid yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.123 H 113.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7E8418
RGBrgb(126, 132, 24)
HSLhsl(63, 69%, 31%)
HSVhsv(63, 82%, 52%)
CMYKcmyk(4.5%, 0%, 81.8%, 48.2%)
CIE-LABlab(52.95, -15.39, 52.28)
CIE-LCHlch(52.95, 54.50, 106.40°)
OKLaboklab(58.92% -0.0481 0.1136)
OKLCHoklch(58.92% 0.123 113)
XYZxyz(17.0209, 21.0045, 4.0216)
Luminance0.2100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8418 #1E1884
analogous
#845418 #7E8418 #488418
triadic
#7E8418 #187E84 #84187E
tetradic
#7E8418 #188454 #1E1884 #841848
square
#7E8418 #188454 #1E1884 #841848
split-complementary
#7E8418 #184884 #541884
monochromatic
#1B1C05 #4D500F #7E8418 #AFB821 #D2DB3B

Accessibility & contrast

On white

4.04
#7E8418 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#7E8418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8418
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8418#FFFFFF#000000##000000
##7E84181.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#877B70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e8418;
/* rgb */ color: rgb(126, 132, 24);
/* oklch */ color: oklch(58.9% 0.123 113.0);
Tailwind
colors: {
  custom: {
    50: '#a7a760',
    500: '#7e8418',
    950: '#000000',
  },
}
SCSS
$custom: #7e8418;
$custom-light: #a7a760;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8418",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 63.333,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58917,
    "c": 0.12336,
    "h": 113
  },
  "luminance": 0.21004
}

Semantic roles & 50–950 ramp

primary
#7E8418
secondary
#4740B8
accent
#3CEC46
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E8418

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

Preview Lab → · Contrast checker → · Palette generator →

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