#B231A7#B231A7

#B231A7 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.2% C 0.208 H 331.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B231A7
RGBrgb(178, 49, 167)
HSLhsl(305, 57%, 45%)
HSVhsv(305, 72%, 70%)
CMYKcmyk(0%, 72.5%, 6.2%, 30.2%)
CIE-LABlab(44.88, 63.97, -35.79)
CIE-LCHlch(44.88, 73.30, 330.77°)
OKLaboklab(55.22% 0.1831 -0.0984)
OKLCHoklch(55.22% 0.208 331.7)
XYZxyz(26.4335, 14.4538, 37.9494)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231A7 #31B23C
analogous
#7C31B2 #B231A7 #B23167
triadic
#B231A7 #A7B231 #31A7B2
tetradic
#B231A7 #B27C31 #31B23C #3167B2
square
#B231A7 #B27C31 #31B23C #3167B2
split-complementary
#B231A7 #67B231 #31B27C
monochromatic
#52174D #82247A #B231A7 #CF51C4 #DC81D5

Accessibility & contrast

On white

5.40
#B231A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B231A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231A7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231A7#FFFFFF#000000##FFFFFF
##B231A71.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAA
Deuteranopia (green-blind)
#5A71A4
Tritanopia (blue-blind)
#B94069
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b231a7;
/* rgb */ color: rgb(178, 49, 167);
/* oklch */ color: oklch(55.2% 0.208 331.7);
Tailwind
colors: {
  custom: {
    50: '#cd76c1',
    500: '#b231a7',
    950: '#000000',
  },
}
SCSS
$custom: #b231a7;
$custom-light: #cd76c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b231a7",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 305.116,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55223,
    "c": 0.20792,
    "h": 331.7
  },
  "luminance": 0.14452
}

Semantic roles & 50–950 ramp

primary
#B231A7
secondary
#79C580
accent
#E05548
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B231A7

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

Preview Lab → · Contrast checker → · Palette generator →

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