#B231DC#B231DC

#B231DC is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.5% C 0.250 H 316.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B231DC
RGBrgb(178, 49, 220)
HSLhsl(285, 71%, 53%)
HSVhsv(285, 78%, 86%)
CMYKcmyk(19.1%, 77.7%, 0%, 13.7%)
CIE-LABlab(48.05, 73.13, -61.56)
CIE-LCHlch(48.05, 95.59, 319.91°)
OKLaboklab(58.49% 0.1798 -0.1736)
OKLCHoklch(58.49% 0.25 316)
XYZxyz(32.3746, 16.8302, 69.2395)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231DC #5BDC31
analogous
#5C31DC #B231DC #DC31B1
triadic
#B231DC #DCB231 #31DCB2
tetradic
#B231DC #DC5C31 #5BDC31 #31B1DC
square
#B231DC #DC5C31 #5BDC31 #31B1DC
split-complementary
#B231DC #B1DC31 #31DC5C
monochromatic
#64157D #8D1EB2 #B231DC #C665E5 #D99AEE

Accessibility & contrast

On white

4.81
#B231DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#B231DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231DC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231DC#FFFFFF#000000##FFFFFF
##B231DC1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE1
Deuteranopia (green-blind)
#2E75D8
Tritanopia (blue-blind)
#AF5987
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b231dc;
/* rgb */ color: rgb(178, 49, 220);
/* oklch */ color: oklch(58.5% 0.250 316.0);
Tailwind
colors: {
  custom: {
    50: '#ce78e8',
    500: '#b231dc',
    950: '#000000',
  },
}
SCSS
$custom: #b231dc;
$custom-light: #ce78e8;
$custom-dark: #000000;
JSON
{
  "hex": "#b231dc",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 220
  },
  "hsl": {
    "h": 285.263,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5849,
    "c": 0.24996,
    "h": 316
  },
  "luminance": 0.16829
}

Semantic roles & 50–950 ramp

primary
#B231DC
secondary
#A2D98F
accent
#EE3A66
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B231DC

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

Preview Lab → · Contrast checker → · Palette generator →

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