#7E8D18#7E8D18

#7E8D18 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.133 H 117.2°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7E8D18
RGBrgb(126, 141, 24)
HSLhsl(68, 71%, 32%)
HSVhsv(68, 83%, 55%)
CMYKcmyk(10.6%, 0%, 83%, 44.7%)
CIE-LABlab(55.64, -20.09, 54.64)
CIE-LCHlch(55.64, 58.21, 110.18°)
OKLaboklab(61.07% -0.0611 0.1186)
OKLCHoklch(61.07% 0.133 117.2)
XYZxyz(18.2944, 23.5515, 4.4461)
Luminance0.2355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D18 #27188D
analogous
#8D6118 #7E8D18 #448D18
triadic
#7E8D18 #187E8D #8D187E
tetradic
#7E8D18 #188D61 #27188D #8D1844
square
#7E8D18 #188D61 #27188D #8D1844
split-complementary
#7E8D18 #18448D #61188D
monochromatic
#212406 #4F590F #7E8D18 #ADC121 #CADF41

Accessibility & contrast

On white

3.68
#7E8D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#7E8D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D18
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D18#FFFFFF#000000##000000
##7E8D181.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#868578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d18;
/* rgb */ color: rgb(126, 141, 24);
/* oklch */ color: oklch(61.1% 0.133 117.2);
Tailwind
colors: {
  custom: {
    50: '#a7ae61',
    500: '#7e8d18',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d18;
$custom-light: #a7ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d18",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 67.692,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.6107,
    "c": 0.13344,
    "h": 117.2
  },
  "luminance": 0.23551
}

Semantic roles & 50–950 ramp

primary
#7E8D18
secondary
#5242BF
accent
#3AEE51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D18

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

Preview Lab → · Contrast checker → · Palette generator →

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