#B231A3#B231A3

#B231A3 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.0% C 0.205 H 333.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B231A3
RGBrgb(178, 49, 163)
HSLhsl(307, 57%, 45%)
HSVhsv(307, 72%, 70%)
CMYKcmyk(0%, 72.5%, 8.4%, 30.2%)
CIE-LABlab(44.67, 63.35, -33.73)
CIE-LCHlch(44.67, 71.77, 331.97°)
OKLaboklab(55.01% 0.1829 -0.0925)
OKLCHoklch(55.01% 0.205 333.2)
XYZxyz(26.0694, 14.3081, 36.0320)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231A3 #31B240
analogous
#8131B2 #B231A3 #B23162
triadic
#B231A3 #A3B231 #31A3B2
tetradic
#B231A3 #B28131 #31B240 #3162B2
square
#B231A3 #B28131 #31B240 #3162B2
split-complementary
#B231A3 #62B231 #31B281
monochromatic
#52174B #822477 #B231A3 #CF51C0 #DC81D2

Accessibility & contrast

On white

5.44
#B231A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B231A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231A3
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231A3#FFFFFF#000000##FFFFFF
##B231A31.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5EA6
Deuteranopia (green-blind)
#5C70A0
Tritanopia (blue-blind)
#BA3E67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b231a3;
/* rgb */ color: rgb(178, 49, 163);
/* oklch */ color: oklch(55.0% 0.205 333.2);
Tailwind
colors: {
  custom: {
    50: '#cd76be',
    500: '#b231a3',
    950: '#000000',
  },
}
SCSS
$custom: #b231a3;
$custom-light: #cd76be;
$custom-dark: #000000;
JSON
{
  "hex": "#b231a3",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 306.977,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55008,
    "c": 0.20497,
    "h": 333.2
  },
  "luminance": 0.14306
}

Semantic roles & 50–950 ramp

primary
#B231A3
secondary
#79C582
accent
#E05948
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B231A3

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

Preview Lab → · Contrast checker → · Palette generator →

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