#8A8E18#8A8E18

#8A8E18 is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.3% C 0.131 H 111.7°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A8E18
RGBrgb(138, 142, 24)
HSLhsl(62, 71%, 33%)
HSVhsv(62, 83%, 56%)
CMYKcmyk(2.8%, 0%, 83.1%, 44.3%)
CIE-LABlab(56.90, -15.23, 56.11)
CIE-LCHlch(56.90, 58.14, 105.19°)
OKLaboklab(62.32% -0.0483 0.1213)
OKLCHoklch(62.32% 0.131 111.7)
XYZxyz(20.3198, 24.8158, 4.5835)
Luminance0.2482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E18 #1C188E
analogous
#8E5718 #8A8E18 #4F8E18
triadic
#8A8E18 #188A8E #8E188A
tetradic
#8A8E18 #188E57 #1C188E #8E184F
square
#8A8E18 #188E57 #1C188E #8E184F
split-complementary
#8A8E18 #184F8E #57188E
monochromatic
#242506 #575A0F #8A8E18 #BDC221 #DADF41

Accessibility & contrast

On white

3.52
#8A8E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#8A8E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E18
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E18#FFFFFF#000000##000000
##8A8E181.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9A8A24
Tritanopia (blue-blind)
#948579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8e18;
/* rgb */ color: rgb(138, 142, 24);
/* oklch */ color: oklch(62.3% 0.131 111.7);
Tailwind
colors: {
  custom: {
    50: '#b0ae62',
    500: '#8a8e18',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e18;
$custom-light: #b0ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e18",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 62.034,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6232,
    "c": 0.13056,
    "h": 111.7
  },
  "luminance": 0.24815
}

Semantic roles & 50–950 ramp

primary
#8A8E18
secondary
#4642C0
accent
#3AEE40
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8E18

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

Preview Lab → · Contrast checker → · Palette generator →

#8A8E18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva