#9A23CA#9A23CA

#9A23CA is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 53.0% C 0.239 H 313.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9A23CA
RGBrgb(154, 35, 202)
HSLhsl(283, 70%, 46%)
HSVhsv(283, 83%, 79%)
CMYKcmyk(23.8%, 82.7%, 0%, 20.8%)
CIE-LABlab(41.75, 69.67, -61.58)
CIE-LCHlch(41.75, 92.98, 318.53°)
OKLaboklab(52.95% 0.1638 -0.1744)
OKLCHoklch(52.95% 0.239 313.2)
XYZxyz(24.5862, 12.3372, 56.9518)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A23CA #53CA23
analogous
#4623CA #9A23CA #CA23A7
triadic
#9A23CA #CA9A23 #23CA9A
tetradic
#9A23CA #CA4623 #53CA23 #23A7CA
square
#9A23CA #CA4623 #53CA23 #23A7CA
split-complementary
#9A23CA #A7CA23 #23CA46
monochromatic
#4A1162 #721A96 #9A23CA #B54AE0 #CA7FE9

Accessibility & contrast

On white

6.06
#9A23CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9A23CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A23CA
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A23CA#FFFFFF#000000##FFFFFF
##9A23CA1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0065C7
Tritanopia (blue-blind)
#954F79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a23ca;
/* rgb */ color: rgb(154, 35, 202);
/* oklch */ color: oklch(53.0% 0.239 313.2);
Tailwind
colors: {
  custom: {
    50: '#bd6fdb',
    500: '#9a23ca',
    950: '#000000',
  },
}
SCSS
$custom: #9a23ca;
$custom-light: #bd6fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a23ca",
  "rgb": {
    "r": 154,
    "g": 35,
    "b": 202
  },
  "hsl": {
    "h": 282.754,
    "s": 70.464,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52951,
    "c": 0.23923,
    "h": 313.2
  },
  "luminance": 0.12336
}

Semantic roles & 50–950 ramp

primary
#9A23CA
secondary
#91D178
accent
#ED3B6E
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9A23CA

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

Preview Lab → · Contrast checker → · Palette generator →

#9A23CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva