#8A8F23#8A8F23

#8A8F23 is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.6% C 0.126 H 112.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A8F23
RGBrgb(138, 143, 35)
HSLhsl(63, 61%, 35%)
HSVhsv(63, 76%, 56%)
CMYKcmyk(3.5%, 0%, 75.5%, 43.9%)
CIE-LABlab(57.24, -15.32, 52.97)
CIE-LCHlch(57.24, 55.14, 106.13°)
OKLaboklab(62.61% -0.0476 0.1167)
OKLCHoklch(62.61% 0.126 112.2)
XYZxyz(20.6077, 25.1700, 5.3625)
Luminance0.2517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F23 #28238F
analogous
#8F5E23 #8A8F23 #548F23
triadic
#8A8F23 #238A8F #8F238A
tetradic
#8A8F23 #238F5E #28238F #8F2354
square
#8A8F23 #238F5E #28238F #8F2354
split-complementary
#8A8F23 #23548F #5E238F
monochromatic
#2B2D0B #5B5E17 #8A8F23 #B9C02F #D0D657

Accessibility & contrast

On white

3.48
#8A8F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#8A8F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F23
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F23#FFFFFF#000000##000000
##8A8F231.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A880B
Deuteranopia (green-blind)
#9B8B2C
Tritanopia (blue-blind)
#94867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8f23;
/* rgb */ color: rgb(138, 143, 35);
/* oklch */ color: oklch(62.6% 0.126 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf67',
    500: '#8a8f23',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f23;
$custom-light: #afaf67;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f23",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 62.778,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62613,
    "c": 0.126,
    "h": 112.2
  },
  "luminance": 0.2517
}

Semantic roles & 50–950 ramp

primary
#8A8F23
secondary
#5954BA
accent
#44E44B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8F23

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

Preview Lab → · Contrast checker → · Palette generator →

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