#B237CC#B237CC

#B237CC is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.231 H 320.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B237CC
RGBrgb(178, 55, 204)
HSLhsl(290, 59%, 51%)
HSVhsv(290, 73%, 80%)
CMYKcmyk(12.7%, 73%, 0%, 20%)
CIE-LABlab(47.70, 68.21, -52.95)
CIE-LCHlch(47.70, 86.35, 322.18°)
OKLaboklab(57.92% 0.1767 -0.1484)
OKLCHoklch(57.92% 0.231 320)
XYZxyz(30.6240, 16.5585, 58.6981)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B237CC #51CC37
analogous
#6737CC #B237CC #CC379C
triadic
#B237CC #CCB237 #37CCB2
tetradic
#B237CC #CC6737 #51CC37 #379CCC
square
#B237CC #CC6737 #51CC37 #379CCC
split-complementary
#B237CC #9CCC37 #37CC67
monochromatic
#5F1C6D #89289E #B237CC #C568D8 #D899E5

Accessibility & contrast

On white

4.87
#B237CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B237CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B237CC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B237CC#FFFFFF#000000##FFFFFF
##B237CC1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#4575C9
Tritanopia (blue-blind)
#B3557F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b237cc;
/* rgb */ color: rgb(178, 55, 204);
/* oklch */ color: oklch(57.9% 0.231 320.0);
Tailwind
colors: {
  custom: {
    50: '#cd7adc',
    500: '#b237cc',
    950: '#000000',
  },
}
SCSS
$custom: #b237cc;
$custom-light: #cd7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#b237cc",
  "rgb": {
    "r": 178,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 289.53,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57917,
    "c": 0.23075,
    "h": 320
  },
  "luminance": 0.16557
}

Semantic roles & 50–950 ramp

primary
#B237CC
secondary
#9AD08E
accent
#E34561
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B237CC

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

Preview Lab → · Contrast checker → · Palette generator →

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