#7E8818#7E8818

#7E8818 is a mid, vivid yellow. Relative luminance 0.221; OKLCH L 59.9% C 0.128 H 115.0°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7E8818
RGBrgb(126, 136, 24)
HSLhsl(65, 70%, 31%)
HSVhsv(65, 82%, 53%)
CMYKcmyk(7.4%, 0%, 82.4%, 46.7%)
CIE-LABlab(54.14, -17.50, 53.33)
CIE-LCHlch(54.14, 56.13, 108.16°)
OKLaboklab(59.87% -0.0539 0.1158)
OKLCHoklch(59.87% 0.128 115)
XYZxyz(17.5737, 22.1102, 4.2059)
Luminance0.2211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8818 #221888
analogous
#885A18 #7E8818 #468818
triadic
#7E8818 #187E88 #88187E
tetradic
#7E8818 #18885A #221888 #881846
square
#7E8818 #18885A #221888 #881846
split-complementary
#7E8818 #184688 #5A1888
monochromatic
#1E2006 #4E540F #7E8818 #AEBC21 #CFDD3E

Accessibility & contrast

On white

3.87
#7E8818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#7E8818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8818
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8818#FFFFFF#000000##000000
##7E88181.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#878074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8818;
/* rgb */ color: rgb(126, 136, 24);
/* oklch */ color: oklch(59.9% 0.128 115.0);
Tailwind
colors: {
  custom: {
    50: '#a7aa61',
    500: '#7e8818',
    950: '#000000',
  },
}
SCSS
$custom: #7e8818;
$custom-light: #a7aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8818",
  "rgb": {
    "r": 126,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 65.357,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59871,
    "c": 0.12777,
    "h": 115
  },
  "luminance": 0.2211
}

Semantic roles & 50–950 ramp

primary
#7E8818
secondary
#4B40BC
accent
#3BED4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8818

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

Preview Lab → · Contrast checker → · Palette generator →

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