#B231CA#B231CA

#B231CA is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.3% C 0.235 H 320.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B231CA
RGBrgb(178, 49, 202)
HSLhsl(291, 61%, 49%)
HSVhsv(291, 76%, 79%)
CMYKcmyk(11.9%, 75.7%, 0%, 20.8%)
CIE-LABlab(46.88, 69.85, -53.11)
CIE-LCHlch(46.88, 87.74, 322.75°)
OKLaboklab(57.3% 0.1822 -0.1489)
OKLCHoklch(57.3% 0.235 320.7)
XYZxyz(30.1178, 15.9275, 57.3536)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231CA #49CA31
analogous
#6631CA #B231CA #CA3196
triadic
#B231CA #CAB231 #31CAB2
tetradic
#B231CA #CA6631 #49CA31 #3196CA
square
#B231CA #CA6631 #49CA31 #3196CA
split-complementary
#B231CA #96CA31 #31CA66
monochromatic
#5B1967 #872599 #B231CA #C560D8 #D791E4

Accessibility & contrast

On white

5.02
#B231CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B231CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231CA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231CA#FFFFFF#000000##FFFFFF
##B231CA1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#4374C7
Tritanopia (blue-blind)
#B3507C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b231ca;
/* rgb */ color: rgb(178, 49, 202);
/* oklch */ color: oklch(57.3% 0.235 320.7);
Tailwind
colors: {
  custom: {
    50: '#cd77db',
    500: '#b231ca',
    950: '#000000',
  },
}
SCSS
$custom: #b231ca;
$custom-light: #cd77db;
$custom-dark: #000000;
JSON
{
  "hex": "#b231ca",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 290.588,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57296,
    "c": 0.23525,
    "h": 320.7
  },
  "luminance": 0.15926
}

Semantic roles & 50–950 ramp

primary
#B231CA
secondary
#93CF88
accent
#E4445D
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B231CA

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

Preview Lab → · Contrast checker → · Palette generator →

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