#B23FA2#B23FA2

#B23FA2 is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.3% C 0.187 H 333.7°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B23FA2
RGBrgb(178, 63, 162)
HSLhsl(308, 48%, 47%)
HSVhsv(308, 65%, 70%)
CMYKcmyk(0%, 64.6%, 9%, 30.2%)
CIE-LABlab(46.49, 57.96, -30.29)
CIE-LCHlch(46.49, 65.40, 332.41°)
OKLaboklab(56.31% 0.1675 -0.0827)
OKLCHoklch(56.31% 0.187 333.7)
XYZxyz(26.6593, 15.6307, 35.7883)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B23FA2 #3FB24F
analogous
#893FB2 #B23FA2 #B23F68
triadic
#B23FA2 #A2B23F #3FA2B2
tetradic
#B23FA2 #B2893F #3FB24F #3F68B2
square
#B23FA2 #B2893F #3FB24F #3F68B2
split-complementary
#B23FA2 #68B23F #3FB289
monochromatic
#581F50 #852F79 #B23FA2 #C966BB #D993CF

Accessibility & contrast

On white

5.09
#B23FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#B23FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B23FA2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B23FA2#FFFFFF#000000##FFFFFF
##B23FA21.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D63A5
Deuteranopia (green-blind)
#63749F
Tritanopia (blue-blind)
#BA486B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b23fa2;
/* rgb */ color: rgb(178, 63, 162);
/* oklch */ color: oklch(56.3% 0.187 333.7);
Tailwind
colors: {
  custom: {
    50: '#cc7cbe',
    500: '#b23fa2',
    950: '#000000',
  },
}
SCSS
$custom: #b23fa2;
$custom-light: #cc7cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b23fa2",
  "rgb": {
    "r": 178,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 308.348,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56306,
    "c": 0.18683,
    "h": 333.7
  },
  "luminance": 0.15629
}

Semantic roles & 50–950 ramp

primary
#B23FA2
secondary
#89C491
accent
#D76350
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B23FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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