#B231B8#B231B8

#B231B8 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.221 H 326.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B231B8
RGBrgb(178, 49, 184)
HSLhsl(297, 58%, 46%)
HSVhsv(297, 73%, 72%)
CMYKcmyk(3.3%, 73.4%, 0%, 27.8%)
CIE-LABlab(45.80, 66.73, -44.35)
CIE-LCHlch(45.80, 80.13, 326.39°)
OKLaboklab(56.19% 0.1833 -0.1233)
OKLCHoklch(56.19% 0.221 326.1)
XYZxyz(28.1096, 15.1242, 46.7768)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231B8 #37B831
analogous
#6E31B8 #B231B8 #B8317B
triadic
#B231B8 #B8B231 #31B8B2
tetradic
#B231B8 #B86E31 #37B831 #317BB8
square
#B231B8 #B86E31 #37B831 #317BB8
split-complementary
#B231B8 #7BB831 #31B86E
monochromatic
#541757 #832488 #B231B8 #CC55D2 #DB85DE

Accessibility & contrast

On white

5.22
#B231B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B231B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231B8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231B8#FFFFFF#000000##FFFFFF
##B231B81.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0662BC
Deuteranopia (green-blind)
#5072B5
Tritanopia (blue-blind)
#B74872
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b231b8;
/* rgb */ color: rgb(178, 49, 184);
/* oklch */ color: oklch(56.2% 0.221 326.1);
Tailwind
colors: {
  custom: {
    50: '#cd76ce',
    500: '#b231b8',
    950: '#000000',
  },
}
SCSS
$custom: #b231b8;
$custom-light: #cd76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b231b8",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 297.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56186,
    "c": 0.22091,
    "h": 326.1
  },
  "luminance": 0.15122
}

Semantic roles & 50–950 ramp

primary
#B231B8
secondary
#80C87D
accent
#E1474E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B231B8

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

Preview Lab → · Contrast checker → · Palette generator →

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