#B231C2#B231C2

#B231C2 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.8% C 0.229 H 323.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#B231C2
RGBrgb(178, 49, 194)
HSLhsl(293, 60%, 48%)
HSVhsv(293, 75%, 76%)
CMYKcmyk(8.2%, 74.7%, 0%, 23.9%)
CIE-LABlab(46.39, 68.44, -49.26)
CIE-LCHlch(46.39, 84.32, 324.26°)
OKLaboklab(56.79% 0.1828 -0.1376)
OKLCHoklch(56.79% 0.229 323)
XYZxyz(29.1951, 15.5584, 52.4938)
Luminance0.1556 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231C2 #41C231
analogous
#6931C2 #B231C2 #C2318A
triadic
#B231C2 #C2B231 #31C2B2
tetradic
#B231C2 #C26931 #41C231 #318AC2
square
#B231C2 #C26931 #41C231 #318AC2
split-complementary
#B231C2 #8AC231 #31C269
monochromatic
#581860 #852591 #B231C2 #C85BD6 #D88CE2

Accessibility & contrast

On white

5.11
#B231C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#B231C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231C2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231C2#FFFFFF#000000##FFFFFF
##B231C21.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#4973BF
Tritanopia (blue-blind)
#B54D78
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b231c2;
/* rgb */ color: rgb(178, 49, 194);
/* oklch */ color: oklch(56.8% 0.229 323.0);
Tailwind
colors: {
  custom: {
    50: '#cd77d5',
    500: '#b231c2',
    950: '#000000',
  },
}
SCSS
$custom: #b231c2;
$custom-light: #cd77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b231c2",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 293.379,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56792,
    "c": 0.22882,
    "h": 323
  },
  "luminance": 0.15557
}

Semantic roles & 50–950 ramp

primary
#B231C2
secondary
#8BCC83
accent
#E34556
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B231C2

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

Preview Lab → · Contrast checker → · Palette generator →

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