#B237B2#B237B2

#B237B2 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.4% C 0.210 H 327.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B237B2
RGBrgb(178, 55, 178)
HSLhsl(300, 53%, 46%)
HSVhsv(300, 69%, 70%)
CMYKcmyk(0%, 69.1%, 0%, 30.2%)
CIE-LABlab(46.20, 63.66, -40.21)
CIE-LCHlch(46.20, 75.30, 327.72°)
OKLaboklab(56.36% 0.1775 -0.1113)
OKLCHoklch(56.36% 0.21 327.9)
XYZxyz(27.7618, 15.4137, 43.6238)
Luminance0.1541 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B237B2 #37B237
analogous
#7437B2 #B237B2 #B23774
triadic
#B237B2 #B2B237 #37B2B2
tetradic
#B237B2 #B27437 #37B237 #3774B2
square
#B237B2 #B27437 #37B237 #3774B2
split-complementary
#B237B2 #74B237 #37B274
monochromatic
#541A54 #832983 #B237B2 #CC5ACC #DB89DB

Accessibility & contrast

On white

5.14
#B237B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#B237B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B237B2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B237B2#FFFFFF#000000##FFFFFF
##B237B21.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B5
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#B84971
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b237b2;
/* rgb */ color: rgb(178, 55, 178);
/* oklch */ color: oklch(56.4% 0.210 327.9);
Tailwind
colors: {
  custom: {
    50: '#cd79c9',
    500: '#b237b2',
    950: '#000000',
  },
}
SCSS
$custom: #b237b2;
$custom-light: #cd79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b237b2",
  "rgb": {
    "r": 178,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56359,
    "c": 0.20952,
    "h": 327.9
  },
  "luminance": 0.15412
}

Semantic roles & 50–950 ramp

primary
#B237B2
secondary
#80C580
accent
#DC4C4C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B237B2

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

Preview Lab → · Contrast checker → · Palette generator →

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