#7E8918#7E8918

#7E8918 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.129 H 115.4°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7E8918
RGBrgb(126, 137, 24)
HSLhsl(66, 70%, 32%)
HSVhsv(66, 82%, 54%)
CMYKcmyk(8%, 0%, 82.5%, 46.3%)
CIE-LABlab(54.44, -18.02, 53.59)
CIE-LCHlch(54.44, 56.54, 108.58°)
OKLaboklab(60.11% -0.0554 0.1164)
OKLCHoklch(60.11% 0.129 115.4)
XYZxyz(17.7152, 22.3932, 4.2531)
Luminance0.2239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8918 #231889
analogous
#895C18 #7E8918 #468918
triadic
#7E8918 #187E89 #89187E
tetradic
#7E8918 #18895C #231889 #891846
square
#7E8918 #18895C #231889 #891846
split-complementary
#7E8918 #184689 #5C1889
monochromatic
#1E2106 #4E550F #7E8918 #AEBD21 #CEDD3E

Accessibility & contrast

On white

3.83
#7E8918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7E8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8918
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8918#FFFFFF#000000##000000
##7E89181.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#938323
Tritanopia (blue-blind)
#878175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8918;
/* rgb */ color: rgb(126, 137, 24);
/* oklch */ color: oklch(60.1% 0.129 115.4);
Tailwind
colors: {
  custom: {
    50: '#a7ab61',
    500: '#7e8918',
    950: '#000000',
  },
}
SCSS
$custom: #7e8918;
$custom-light: #a7ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8918",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 65.841,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.6011,
    "c": 0.1289,
    "h": 115.4
  },
  "luminance": 0.22393
}

Semantic roles & 50–950 ramp

primary
#7E8918
secondary
#4C40BD
accent
#3BED4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8918

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

Preview Lab → · Contrast checker → · Palette generator →

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