#7E8F18#7E8F18

#7E8F18 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.6% C 0.136 H 118.1°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7E8F18
RGBrgb(126, 143, 24)
HSLhsl(69, 71%, 33%)
HSVhsv(69, 83%, 56%)
CMYKcmyk(11.9%, 0%, 83.2%, 43.9%)
CIE-LABlab(56.23, -21.11, 55.16)
CIE-LCHlch(56.23, 59.06, 110.94°)
OKLaboklab(61.55% -0.0639 0.1198)
OKLCHoklch(61.55% 0.136 118.1)
XYZxyz(18.5920, 24.1467, 4.5453)
Luminance0.2415 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8F18 #29188F
analogous
#8F6418 #7E8F18 #438F18
triadic
#7E8F18 #187E8F #8F187E
tetradic
#7E8F18 #188F64 #29188F #8F1843
square
#7E8F18 #188F64 #29188F #8F1843
split-complementary
#7E8F18 #18438F #64188F
monochromatic
#222606 #505B0F #7E8F18 #ACC321 #C9DF42

Accessibility & contrast

On white

3.60
#7E8F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#7E8F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8F18
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8F18#FFFFFF#000000##000000
##7E8F181.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#978725
Tritanopia (blue-blind)
#86877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7e8f18;
/* rgb */ color: rgb(126, 143, 24);
/* oklch */ color: oklch(61.6% 0.136 118.1);
Tailwind
colors: {
  custom: {
    50: '#a7af62',
    500: '#7e8f18',
    950: '#000000',
  },
}
SCSS
$custom: #7e8f18;
$custom-light: #a7af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8f18",
  "rgb": {
    "r": 126,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 68.571,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61551,
    "c": 0.13573,
    "h": 118.1
  },
  "luminance": 0.24146
}

Semantic roles & 50–950 ramp

primary
#7E8F18
secondary
#5543C0
accent
#3AEE54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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