#8A8D23#8A8D23

#8A8D23 is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.1% C 0.124 H 111.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A8D23
RGBrgb(138, 141, 35)
HSLhsl(62, 60%, 35%)
HSVhsv(62, 75%, 55%)
CMYKcmyk(2.1%, 0%, 75.2%, 44.7%)
CIE-LABlab(56.66, -14.26, 52.42)
CIE-LCHlch(56.66, 54.32, 105.22°)
OKLaboklab(62.15% -0.0447 0.1155)
OKLCHoklch(62.15% 0.124 111.2)
XYZxyz(20.3102, 24.5749, 5.2633)
Luminance0.2457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D23 #26238D
analogous
#8D5B23 #8A8D23 #558D23
triadic
#8A8D23 #238A8D #8D238A
tetradic
#8A8D23 #238D5B #26238D #8D2355
square
#8A8D23 #238D5B #26238D #8D2355
split-complementary
#8A8D23 #23558D #5B238D
monochromatic
#2A2B0B #5A5C17 #8A8D23 #BABE2F #D1D555

Accessibility & contrast

On white

3.55
#8A8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#8A8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D23
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D23#FFFFFF#000000##000000
##8A8D231.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860D
Deuteranopia (green-blind)
#99892C
Tritanopia (blue-blind)
#948479
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d23;
/* rgb */ color: rgb(138, 141, 35);
/* oklch */ color: oklch(62.1% 0.124 111.2);
Tailwind
colors: {
  custom: {
    50: '#afae66',
    500: '#8a8d23',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d23;
$custom-light: #afae66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d23",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 61.698,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.62148,
    "c": 0.12384,
    "h": 111.2
  },
  "luminance": 0.24574
}

Semantic roles & 50–950 ramp

primary
#8A8D23
secondary
#5653B9
accent
#44E349
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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