#B231B7#B231B7

#B231B7 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.220 H 326.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B231B7
RGBrgb(178, 49, 183)
HSLhsl(298, 58%, 45%)
HSVhsv(298, 73%, 72%)
CMYKcmyk(2.7%, 73.2%, 0%, 28.2%)
CIE-LABlab(45.75, 66.56, -43.86)
CIE-LCHlch(45.75, 79.71, 326.62°)
OKLaboklab(56.13% 0.1833 -0.1218)
OKLCHoklch(56.13% 0.22 326.4)
XYZxyz(28.0051, 15.0824, 46.2267)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231B7 #36B731
analogous
#6F31B7 #B231B7 #B73179
triadic
#B231B7 #B7B231 #31B7B2
tetradic
#B231B7 #B76F31 #36B731 #3179B7
square
#B231B7 #B76F31 #36B731 #3179B7
split-complementary
#B231B7 #79B731 #31B76F
monochromatic
#541756 #832487 #B231B7 #CD54D1 #DB84DE

Accessibility & contrast

On white

5.23
#B231B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B231B7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231B7#FFFFFF#000000##FFFFFF
##B231B71.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A62BB
Deuteranopia (green-blind)
#5172B4
Tritanopia (blue-blind)
#B74772
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b231b7;
/* rgb */ color: rgb(178, 49, 183);
/* oklch */ color: oklch(56.1% 0.220 326.4);
Tailwind
colors: {
  custom: {
    50: '#cd76cd',
    500: '#b231b7',
    950: '#000000',
  },
}
SCSS
$custom: #b231b7;
$custom-light: #cd76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b231b7",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 297.761,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56127,
    "c": 0.22012,
    "h": 326.4
  },
  "luminance": 0.15081
}

Semantic roles & 50–950 ramp

primary
#B231B7
secondary
#7FC87C
accent
#E1474D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B231B7

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

Preview Lab → · Contrast checker → · Palette generator →

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