#8A8C23#8A8C23

#8A8C23 is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.9% C 0.123 H 110.6°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A8C23
RGBrgb(138, 140, 35)
HSLhsl(61, 60%, 34%)
HSVhsv(61, 75%, 55%)
CMYKcmyk(1.4%, 0%, 75%, 45.1%)
CIE-LABlab(56.37, -13.73, 52.14)
CIE-LCHlch(56.37, 53.92, 104.75°)
OKLaboklab(61.92% -0.0432 0.1149)
OKLCHoklch(61.92% 0.123 110.6)
XYZxyz(20.1634, 24.2813, 5.2144)
Luminance0.2428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C23 #25238C
analogous
#8C5A23 #8A8C23 #568C23
triadic
#8A8C23 #238A8C #8C238A
tetradic
#8A8C23 #238C5A #25238C #8C2356
square
#8A8C23 #238C5A #25238C #8C2356
split-complementary
#8A8C23 #23568C #5A238C
monochromatic
#292A0B #5A5B17 #8A8C23 #BABD2F #D2D455

Accessibility & contrast

On white

3.59
#8A8C23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#8A8C23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C23
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C23#FFFFFF#000000##000000
##8A8C231.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#97860D
Deuteranopia (green-blind)
#98892B
Tritanopia (blue-blind)
#948378
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c23;
/* rgb */ color: rgb(138, 140, 35);
/* oklch */ color: oklch(61.9% 0.123 110.6);
Tailwind
colors: {
  custom: {
    50: '#afad66',
    500: '#8a8c23',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c23;
$custom-light: #afad66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c23",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 35
  },
  "hsl": {
    "h": 61.143,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61915,
    "c": 0.12277,
    "h": 110.6
  },
  "luminance": 0.24281
}

Semantic roles & 50–950 ramp

primary
#8A8C23
secondary
#5452B8
accent
#45E348
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8C23

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

Preview Lab → · Contrast checker → · Palette generator →

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