#B237AB#B237AB

#B237AB is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.0% C 0.204 H 330.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B237AB
RGBrgb(178, 55, 171)
HSLhsl(303, 53%, 46%)
HSVhsv(303, 69%, 70%)
CMYKcmyk(0%, 69.1%, 3.9%, 30.2%)
CIE-LABlab(45.82, 62.51, -36.66)
CIE-LCHlch(45.82, 72.47, 329.61°)
OKLaboklab(55.97% 0.1773 -0.101)
OKLCHoklch(55.97% 0.204 330.3)
XYZxyz(27.0768, 15.1397, 40.0163)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B237AB #37B23E
analogous
#7C37B2 #B237AB #B2376D
triadic
#B237AB #ABB237 #37ABB2
tetradic
#B237AB #B27C37 #37B23E #376DB2
square
#B237AB #B27C37 #37B23E #376DB2
split-complementary
#B237AB #6DB237 #37B27C
monochromatic
#541A51 #83297E #B237AB #CC5AC6 #DB89D6

Accessibility & contrast

On white

5.21
#B237AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B237AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B237AB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B237AB#FFFFFF#000000##FFFFFF
##B237AB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B62AE
Deuteranopia (green-blind)
#5B72A8
Tritanopia (blue-blind)
#B9466D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b237ab;
/* rgb */ color: rgb(178, 55, 171);
/* oklch */ color: oklch(56.0% 0.204 330.3);
Tailwind
colors: {
  custom: {
    50: '#cc79c4',
    500: '#b237ab',
    950: '#000000',
  },
}
SCSS
$custom: #b237ab;
$custom-light: #cc79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b237ab",
  "rgb": {
    "r": 178,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 303.415,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55972,
    "c": 0.20404,
    "h": 330.3
  },
  "luminance": 0.15138
}

Semantic roles & 50–950 ramp

primary
#B237AB
secondary
#80C584
accent
#DC544C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B237AB

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

Preview Lab → · Contrast checker → · Palette generator →

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