#B23AA2#B23AA2

#B23AA2 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.8% C 0.193 H 333.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B23AA2
RGBrgb(178, 58, 162)
HSLhsl(308, 51%, 46%)
HSVhsv(308, 67%, 70%)
CMYKcmyk(0%, 67.4%, 9%, 30.2%)
CIE-LABlab(45.77, 59.95, -31.41)
CIE-LCHlch(45.77, 67.67, 332.35°)
OKLaboklab(55.79% 0.1733 -0.0859)
OKLCHoklch(55.79% 0.193 333.6)
XYZxyz(26.3949, 15.1019, 35.7002)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B23AA2 #3AB24A
analogous
#863AB2 #B23AA2 #B23A66
triadic
#B23AA2 #A2B23A #3AA2B2
tetradic
#B23AA2 #B2863A #3AB24A #3A66B2
square
#B23AA2 #B2863A #3AB24A #3A66B2
split-complementary
#B23AA2 #66B23A #3AB286
monochromatic
#561C4E #842B78 #B23AA2 #CB5FBC #DA8DCF

Accessibility & contrast

On white

5.22
#B23AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B23AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B23AA2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B23AA2#FFFFFF#000000##FFFFFF
##B23AA21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#60739F
Tritanopia (blue-blind)
#BA4469
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b23aa2;
/* rgb */ color: rgb(178, 58, 162);
/* oklch */ color: oklch(55.8% 0.193 333.6);
Tailwind
colors: {
  custom: {
    50: '#cc7abe',
    500: '#b23aa2',
    950: '#000000',
  },
}
SCSS
$custom: #b23aa2;
$custom-light: #cc7abe;
$custom-dark: #000000;
JSON
{
  "hex": "#b23aa2",
  "rgb": {
    "r": 178,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 308,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55788,
    "c": 0.19344,
    "h": 333.6
  },
  "luminance": 0.151
}

Semantic roles & 50–950 ramp

primary
#B23AA2
secondary
#83C48C
accent
#DA604D
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B23AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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