#7E8E18#7E8E18

#7E8E18 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.3% C 0.135 H 117.7°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7E8E18
RGBrgb(126, 142, 24)
HSLhsl(68, 71%, 33%)
HSVhsv(68, 83%, 56%)
CMYKcmyk(11.3%, 0%, 83.1%, 44.3%)
CIE-LABlab(55.94, -20.60, 54.90)
CIE-LCHlch(55.94, 58.64, 110.57°)
OKLaboklab(61.31% -0.0625 0.1192)
OKLCHoklch(61.31% 0.135 117.7)
XYZxyz(18.4425, 23.8478, 4.4955)
Luminance0.2385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E18 #28188E
analogous
#8E6318 #7E8E18 #438E18
triadic
#7E8E18 #187E8E #8E187E
tetradic
#7E8E18 #188E63 #28188E #8E1843
square
#7E8E18 #188E63 #28188E #8E1843
split-complementary
#7E8E18 #18438E #63188E
monochromatic
#212506 #505A0F #7E8E18 #ACC221 #CADF41

Accessibility & contrast

On white

3.64
#7E8E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#7E8E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E18
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E18#FFFFFF#000000##000000
##7E8E181.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#978724
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e18;
/* rgb */ color: rgb(126, 142, 24);
/* oklch */ color: oklch(61.3% 0.135 117.7);
Tailwind
colors: {
  custom: {
    50: '#a7af62',
    500: '#7e8e18',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e18;
$custom-light: #a7af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e18",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 68.136,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6131,
    "c": 0.13458,
    "h": 117.7
  },
  "luminance": 0.23848
}

Semantic roles & 50–950 ramp

primary
#7E8E18
secondary
#5342C0
accent
#3AEE52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8E18

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

Preview Lab → · Contrast checker → · Palette generator →

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