#B231CC#B231CC

#B231CC is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.4% C 0.237 H 320.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#B231CC
RGBrgb(178, 49, 204)
HSLhsl(290, 61%, 50%)
HSVhsv(290, 76%, 80%)
CMYKcmyk(12.7%, 76%, 0%, 20%)
CIE-LABlab(47.00, 70.20, -54.06)
CIE-LCHlch(47.00, 88.61, 322.40°)
OKLaboklab(57.42% 0.182 -0.1517)
OKLCHoklch(57.42% 0.237 320.2)
XYZxyz(30.3562, 16.0228, 58.6088)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231CC #4BCC31
analogous
#6431CC #B231CC #CC3199
triadic
#B231CC #CCB231 #31CCB2
tetradic
#B231CC #CC6431 #4BCC31 #3199CC
square
#B231CC #CC6431 #4BCC31 #3199CC
split-complementary
#B231CC #99CC31 #31CC64
monochromatic
#5C1969 #87259B #B231CC #C561D9 #D792E5

Accessibility & contrast

On white

5.00
#B231CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#B231CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231CC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231CC#FFFFFF#000000##FFFFFF
##B231CC1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#4174C9
Tritanopia (blue-blind)
#B3517D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b231cc;
/* rgb */ color: rgb(178, 49, 204);
/* oklch */ color: oklch(57.4% 0.237 320.2);
Tailwind
colors: {
  custom: {
    50: '#cd77dc',
    500: '#b231cc',
    950: '#000000',
  },
}
SCSS
$custom: #b231cc;
$custom-light: #cd77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b231cc",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 289.935,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57424,
    "c": 0.23687,
    "h": 320.2
  },
  "luminance": 0.16021
}

Semantic roles & 50–950 ramp

primary
#B231CC
secondary
#95D089
accent
#E4435E
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B231CC

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

Preview Lab → · Contrast checker → · Palette generator →

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