#B231B5#B231B5

#B231B5 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.219 H 327.0°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B231B5
RGBrgb(178, 49, 181)
HSLhsl(299, 57%, 45%)
HSVhsv(299, 73%, 71%)
CMYKcmyk(1.7%, 72.9%, 0%, 29%)
CIE-LABlab(45.63, 66.23, -42.86)
CIE-LCHlch(45.63, 78.89, 327.09°)
OKLaboklab(56.01% 0.1834 -0.1189)
OKLCHoklch(56.01% 0.219 327)
XYZxyz(27.7984, 14.9997, 45.1382)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231B5 #34B531
analogous
#7031B5 #B231B5 #B53176
triadic
#B231B5 #B5B231 #31B5B2
tetradic
#B231B5 #B57031 #34B531 #3176B5
square
#B231B5 #B57031 #34B531 #3176B5
split-complementary
#B231B5 #76B531 #31B570
monochromatic
#531755 #832485 #B231B5 #CE53D0 #DB83DD

Accessibility & contrast

On white

5.25
#B231B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B231B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231B5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231B5#FFFFFF#000000##FFFFFF
##B231B51.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1162B9
Deuteranopia (green-blind)
#5272B2
Tritanopia (blue-blind)
#B74671
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b231b5;
/* rgb */ color: rgb(178, 49, 181);
/* oklch */ color: oklch(56.0% 0.219 327.0);
Tailwind
colors: {
  custom: {
    50: '#cd76cc',
    500: '#b231b5',
    950: '#000000',
  },
}
SCSS
$custom: #b231b5;
$custom-light: #cd76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b231b5",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 298.636,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5601,
    "c": 0.21857,
    "h": 327
  },
  "luminance": 0.14998
}

Semantic roles & 50–950 ramp

primary
#B231B5
secondary
#7DC77B
accent
#E1474B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B231B5

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

Preview Lab → · Contrast checker → · Palette generator →

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