#B237A7#B237A7

#B237A7 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.8% C 0.201 H 331.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B237A7
RGBrgb(178, 55, 167)
HSLhsl(305, 53%, 46%)
HSVhsv(305, 69%, 70%)
CMYKcmyk(0%, 69.1%, 6.2%, 30.2%)
CIE-LABlab(45.62, 61.86, -34.62)
CIE-LCHlch(45.62, 70.89, 330.77°)
OKLaboklab(55.76% 0.177 -0.0951)
OKLCHoklch(55.76% 0.201 331.8)
XYZxyz(26.7013, 14.9895, 38.0387)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B237A7 #37B242
analogous
#7F37B2 #B237A7 #B23769
triadic
#B237A7 #A7B237 #37A7B2
tetradic
#B237A7 #B27F37 #37B242 #3769B2
square
#B237A7 #B27F37 #37B242 #3769B2
split-complementary
#B237A7 #69B237 #37B27F
monochromatic
#541A4F #83297B #B237A7 #CC5AC2 #DB89D3

Accessibility & contrast

On white

5.25
#B237A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B237A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B237A7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B237A7#FFFFFF#000000##FFFFFF
##B237A71.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AA
Deuteranopia (green-blind)
#5D72A4
Tritanopia (blue-blind)
#B9446B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b237a7;
/* rgb */ color: rgb(178, 55, 167);
/* oklch */ color: oklch(55.8% 0.201 331.8);
Tailwind
colors: {
  custom: {
    50: '#cc79c1',
    500: '#b237a7',
    950: '#000000',
  },
}
SCSS
$custom: #b237a7;
$custom-light: #cc79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b237a7",
  "rgb": {
    "r": 178,
    "g": 55,
    "b": 167
  },
  "hsl": {
    "h": 305.366,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55758,
    "c": 0.20097,
    "h": 331.8
  },
  "luminance": 0.14987
}

Semantic roles & 50–950 ramp

primary
#B237A7
secondary
#80C586
accent
#DC594C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B237A7

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

Preview Lab → · Contrast checker → · Palette generator →

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