#B23CA2#B23CA2

#B23CA2 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.191 H 333.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B23CA2
RGBrgb(178, 60, 162)
HSLhsl(308, 50%, 47%)
HSVhsv(308, 66%, 70%)
CMYKcmyk(0%, 66.3%, 9%, 30.2%)
CIE-LABlab(46.05, 59.17, -30.97)
CIE-LCHlch(46.05, 66.78, 332.37°)
OKLaboklab(55.99% 0.171 -0.0847)
OKLCHoklch(55.99% 0.191 333.7)
XYZxyz(26.4977, 15.3075, 35.7345)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B23CA2 #3CB24C
analogous
#873CB2 #B23CA2 #B23C67
triadic
#B23CA2 #A2B23C #3CA2B2
tetradic
#B23CA2 #B2873C #3CB24C #3C67B2
square
#B23CA2 #B2873C #3CB24C #3C67B2
split-complementary
#B23CA2 #67B23C #3CB287
monochromatic
#561D4F #842D78 #B23CA2 #CA61BC #D98FCF

Accessibility & contrast

On white

5.17
#B23CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B23CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B23CA2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B23CA2#FFFFFF#000000##FFFFFF
##B23CA21.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#61739F
Tritanopia (blue-blind)
#BA466A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b23ca2;
/* rgb */ color: rgb(178, 60, 162);
/* oklch */ color: oklch(56.0% 0.191 333.7);
Tailwind
colors: {
  custom: {
    50: '#cc7bbe',
    500: '#b23ca2',
    950: '#000000',
  },
}
SCSS
$custom: #b23ca2;
$custom-light: #cc7bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b23ca2",
  "rgb": {
    "r": 178,
    "g": 60,
    "b": 162
  },
  "hsl": {
    "h": 308.136,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55991,
    "c": 0.19085,
    "h": 333.7
  },
  "luminance": 0.15305
}

Semantic roles & 50–950 ramp

primary
#B23CA2
secondary
#86C48E
accent
#D9614F
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B23CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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