#B23CD2#B23CD2

#B23CD2 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.7% C 0.230 H 318.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B23CD2
RGBrgb(178, 60, 210)
HSLhsl(287, 63%, 53%)
HSVhsv(287, 71%, 82%)
CMYKcmyk(15.2%, 71.4%, 0%, 17.6%)
CIE-LABlab(48.70, 67.53, -54.79)
CIE-LCHlch(48.70, 86.96, 320.94°)
OKLaboklab(58.75% 0.1715 -0.1539)
OKLCHoklch(58.75% 0.23 318.1)
XYZxyz(31.6072, 17.3513, 62.6445)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B23CD2 #5CD23C
analogous
#673CD2 #B23CD2 #D23CA7
triadic
#B23CD2 #D2B23C #3CD2B2
tetradic
#B23CD2 #D2673C #5CD23C #3CA7D2
square
#B23CD2 #D2673C #5CD23C #3CA7D2
split-complementary
#B23CD2 #A7D23C #3CD267
monochromatic
#641C78 #8E27AA #B23CD2 #C66EDD #D99FE9

Accessibility & contrast

On white

4.70
#B23CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B23CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B23CD2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B23CD2#FFFFFF#000000##FFFFFF
##B23CD21.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#4377CF
Tritanopia (blue-blind)
#B15A84
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b23cd2;
/* rgb */ color: rgb(178, 60, 210);
/* oklch */ color: oklch(58.7% 0.230 318.1);
Tailwind
colors: {
  custom: {
    50: '#cd7ce0',
    500: '#b23cd2',
    950: '#000000',
  },
}
SCSS
$custom: #b23cd2;
$custom-light: #cd7ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#b23cd2",
  "rgb": {
    "r": 178,
    "g": 60,
    "b": 210
  },
  "hsl": {
    "h": 287.2,
    "s": 62.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58748,
    "c": 0.23037,
    "h": 318.1
  },
  "luminance": 0.1735
}

Semantic roles & 50–950 ramp

primary
#B23CD2
secondary
#A2D594
accent
#E64265
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B23CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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