#B23EC5#B23EC5

#B23EC5 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.217 H 321.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B23EC5
RGBrgb(178, 62, 197)
HSLhsl(292, 54%, 51%)
HSVhsv(292, 69%, 77%)
CMYKcmyk(9.6%, 68.5%, 0%, 22.7%)
CIE-LABlab(48.19, 64.36, -48.12)
CIE-LCHlch(48.19, 80.36, 323.22°)
OKLaboklab(58.13% 0.1702 -0.1344)
OKLCHoklch(58.13% 0.217 321.7)
XYZxyz(30.1597, 16.9431, 54.4942)
Luminance0.1694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B23EC5 #51C53E
analogous
#6F3EC5 #B23EC5 #C53E94
triadic
#B23EC5 #C5B23E #3EC5B2
tetradic
#B23EC5 #C56F3E #51C53E #3E94C5
square
#B23EC5 #C56F3E #51C53E #3E94C5
split-complementary
#B23EC5 #94C53E #3EC56F
monochromatic
#5F2069 #892E98 #B23EC5 #C56DD3 #D89CE1

Accessibility & contrast

On white

4.79
#B23EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B23EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B23EC5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B23EC5#FFFFFF#000000##FFFFFF
##B23EC51.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6AC9
Deuteranopia (green-blind)
#4F77C2
Tritanopia (blue-blind)
#B4567D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b23ec5;
/* rgb */ color: rgb(178, 62, 197);
/* oklch */ color: oklch(58.1% 0.217 321.7);
Tailwind
colors: {
  custom: {
    50: '#cd7dd7',
    500: '#b23ec5',
    950: '#000000',
  },
}
SCSS
$custom: #b23ec5;
$custom-light: #cd7dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#b23ec5",
  "rgb": {
    "r": 178,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 291.556,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58133,
    "c": 0.21684,
    "h": 321.7
  },
  "luminance": 0.16941
}

Semantic roles & 50–950 ramp

primary
#B23EC5
secondary
#9ACD91
accent
#DD4B5F
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B23EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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