#B231B2#B231B2

#B231B2 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.216 H 328.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B231B2
RGBrgb(178, 49, 178)
HSLhsl(300, 57%, 45%)
HSVhsv(300, 72%, 70%)
CMYKcmyk(0%, 72.5%, 0%, 30.2%)
CIE-LABlab(45.47, 65.73, -41.36)
CIE-LCHlch(45.47, 77.67, 327.82°)
OKLaboklab(55.84% 0.1834 -0.1146)
OKLCHoklch(55.84% 0.216 328)
XYZxyz(27.4939, 14.8779, 43.5345)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231B2 #31B231
analogous
#7231B2 #B231B2 #B23172
triadic
#B231B2 #B2B231 #31B2B2
tetradic
#B231B2 #B27231 #31B231 #3172B2
square
#B231B2 #B27231 #31B231 #3172B2
split-complementary
#B231B2 #72B231 #31B272
monochromatic
#521752 #822482 #B231B2 #CF51CF #DC81DC

Accessibility & contrast

On white

5.28
#B231B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B231B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231B2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231B2#FFFFFF#000000##FFFFFF
##B231B21.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B6
Deuteranopia (green-blind)
#5471AF
Tritanopia (blue-blind)
#B8456F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b231b2;
/* rgb */ color: rgb(178, 49, 178);
/* oklch */ color: oklch(55.8% 0.216 328.0);
Tailwind
colors: {
  custom: {
    50: '#cd76c9',
    500: '#b231b2',
    950: '#000000',
  },
}
SCSS
$custom: #b231b2;
$custom-light: #cd76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b231b2",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55836,
    "c": 0.21625,
    "h": 328
  },
  "luminance": 0.14876
}

Semantic roles & 50–950 ramp

primary
#B231B2
secondary
#79C579
accent
#E04848
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B231B2

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

Preview Lab → · Contrast checker → · Palette generator →

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