#B237A2#B237A2

#B237A2 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.5% C 0.197 H 333.6°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B237A2
RGBrgb(178, 55, 162)
HSLhsl(308, 53%, 46%)
HSVhsv(308, 69%, 70%)
CMYKcmyk(0%, 69.1%, 9%, 30.2%)
CIE-LABlab(45.37, 61.08, -32.04)
CIE-LCHlch(45.37, 68.97, 332.32°)
OKLaboklab(55.5% 0.1766 -0.0877)
OKLCHoklch(55.5% 0.197 333.6)
XYZxyz(26.2480, 14.8081, 35.6512)
Luminance0.1481 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B237A2 #37B247
analogous
#8437B2 #B237A2 #B23764
triadic
#B237A2 #A2B237 #37A2B2
tetradic
#B237A2 #B28437 #37B247 #3764B2
square
#B237A2 #B28437 #37B247 #3764B2
split-complementary
#B237A2 #64B237 #37B284
monochromatic
#541A4D #832977 #B237A2 #CC5ABD #DB89D0

Accessibility & contrast

On white

5.30
#B237A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B237A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B237A2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B237A2#FFFFFF#000000##FFFFFF
##B237A21.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#BA4268
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b237a2;
/* rgb */ color: rgb(178, 55, 162);
/* oklch */ color: oklch(55.5% 0.197 333.6);
Tailwind
colors: {
  custom: {
    50: '#cc78be',
    500: '#b237a2',
    950: '#000000',
  },
}
SCSS
$custom: #b237a2;
$custom-light: #cc78be;
$custom-dark: #000000;
JSON
{
  "hex": "#b237a2",
  "rgb": {
    "r": 178,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 307.805,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55497,
    "c": 0.19721,
    "h": 333.6
  },
  "luminance": 0.14806
}

Semantic roles & 50–950 ramp

primary
#B237A2
secondary
#80C589
accent
#DC5E4C
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B237A2

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

Preview Lab → · Contrast checker → · Palette generator →

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