#B23AA9#B23AA9

#B23AA9 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.2% C 0.199 H 331.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B23AA9
RGBrgb(178, 58, 169)
HSLhsl(305, 51%, 46%)
HSVhsv(305, 67%, 70%)
CMYKcmyk(0%, 67.4%, 5.1%, 30.2%)
CIE-LABlab(46.12, 61.06, -35.02)
CIE-LCHlch(46.12, 70.39, 330.17°)
OKLaboklab(56.15% 0.1739 -0.0963)
OKLCHoklch(56.15% 0.199 331)
XYZxyz(27.0345, 15.3577, 39.0689)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B23AA9 #3AB243
analogous
#7F3AB2 #B23AA9 #B23A6D
triadic
#B23AA9 #A9B23A #3AA9B2
tetradic
#B23AA9 #B27F3A #3AB243 #3A6DB2
square
#B23AA9 #B27F3A #3AB243 #3A6DB2
split-complementary
#B23AA9 #6DB23A #3AB27F
monochromatic
#561C51 #842B7D #B23AA9 #CB5FC3 #DA8DD4

Accessibility & contrast

On white

5.16
#B23AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B23AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B23AA9
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B23AA9#FFFFFF#000000##FFFFFF
##B23AA91.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3163AC
Deuteranopia (green-blind)
#5D73A6
Tritanopia (blue-blind)
#B9476D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b23aa9;
/* rgb */ color: rgb(178, 58, 169);
/* oklch */ color: oklch(56.2% 0.199 331.0);
Tailwind
colors: {
  custom: {
    50: '#cc7ac3',
    500: '#b23aa9',
    950: '#000000',
  },
}
SCSS
$custom: #b23aa9;
$custom-light: #cc7ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#b23aa9",
  "rgb": {
    "r": 178,
    "g": 58,
    "b": 169
  },
  "hsl": {
    "h": 304.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56152,
    "c": 0.1988,
    "h": 331
  },
  "luminance": 0.15356
}

Semantic roles & 50–950 ramp

primary
#B23AA9
secondary
#83C488
accent
#DA584D
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B23AA9

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

Preview Lab → · Contrast checker → · Palette generator →

#B23AA9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva