#8A8E23#8A8E23

#8A8E23 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.4% C 0.125 H 111.7°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A8E23
RGBrgb(138, 142, 35)
HSLhsl(62, 60%, 35%)
HSVhsv(62, 75%, 56%)
CMYKcmyk(2.8%, 0%, 75.4%, 44.3%)
CIE-LABlab(56.95, -14.79, 52.69)
CIE-LCHlch(56.95, 54.73, 105.68°)
OKLaboklab(62.38% -0.0462 0.1161)
OKLCHoklch(62.38% 0.125 111.7)
XYZxyz(20.4583, 24.8711, 5.3127)
Luminance0.2487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E23 #27238E
analogous
#8E5D23 #8A8E23 #558E23
triadic
#8A8E23 #238A8E #8E238A
tetradic
#8A8E23 #238E5D #27238E #8E2355
square
#8A8E23 #238E5D #27238E #8E2355
split-complementary
#8A8E23 #23558E #5D238E
monochromatic
#2B2C0B #5A5D17 #8A8E23 #BABF2F #D1D556

Accessibility & contrast

On white

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

On black

5.97
#8A8E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E23
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E23#FFFFFF#000000##000000
##8A8E231.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870C
Deuteranopia (green-blind)
#9A8A2C
Tritanopia (blue-blind)
#94857A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e23;
/* rgb */ color: rgb(138, 142, 35);
/* oklch */ color: oklch(62.4% 0.125 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae67',
    500: '#8a8e23',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e23;
$custom-light: #afae67;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e23",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 35
  },
  "hsl": {
    "h": 62.243,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.6238,
    "c": 0.12491,
    "h": 111.7
  },
  "luminance": 0.24871
}

Semantic roles & 50–950 ramp

primary
#8A8E23
secondary
#5753B9
accent
#44E44A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8E23

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

Preview Lab → · Contrast checker → · Palette generator →

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