#9A23B2#9A23B2

#9A23B2 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.2% C 0.220 H 320.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9A23B2
RGBrgb(154, 35, 178)
HSLhsl(290, 67%, 42%)
HSVhsv(290, 80%, 70%)
CMYKcmyk(13.5%, 80.3%, 0%, 30.2%)
CIE-LABlab(40.06, 65.18, -50.23)
CIE-LCHlch(40.06, 82.29, 322.38°)
OKLaboklab(51.24% 0.1683 -0.1411)
OKLCHoklch(51.24% 0.22 320)
XYZxyz(21.9623, 11.2876, 43.1327)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A23B2 #3BB223
analogous
#5323B2 #9A23B2 #B22383
triadic
#9A23B2 #B29A23 #23B29A
tetradic
#9A23B2 #B25323 #3BB223 #2383B2
square
#9A23B2 #B25323 #3BB223 #2383B2
split-complementary
#9A23B2 #83B223 #23B253
monochromatic
#420F4C #6E197F #9A23B2 #BE3AD8 #CF6DE2

Accessibility & contrast

On white

6.45
#9A23B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9A23B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A23B2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A23B2#FFFFFF#000000##FFFFFF
##9A23B21.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#3262AF
Tritanopia (blue-blind)
#9A436B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9a23b2;
/* rgb */ color: rgb(154, 35, 178);
/* oklch */ color: oklch(51.2% 0.220 320.0);
Tailwind
colors: {
  custom: {
    50: '#bc6eca',
    500: '#9a23b2',
    950: '#000000',
  },
}
SCSS
$custom: #9a23b2;
$custom-light: #bc6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#9a23b2",
  "rgb": {
    "r": 154,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 289.93,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51237,
    "c": 0.21958,
    "h": 320
  },
  "luminance": 0.11286
}

Semantic roles & 50–950 ramp

primary
#9A23B2
secondary
#78C968
accent
#EA3E5B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9A23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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