#B237A9#B237A9

#B237A9 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.9% C 0.203 H 331.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B237A9
RGBrgb(178, 55, 169)
HSLhsl(304, 53%, 46%)
HSVhsv(304, 69%, 70%)
CMYKcmyk(0%, 69.1%, 5.1%, 30.2%)
CIE-LABlab(45.72, 62.19, -35.64)
CIE-LCHlch(45.72, 71.68, 330.18°)
OKLaboklab(55.86% 0.1772 -0.0981)
OKLCHoklch(55.86% 0.203 331)
XYZxyz(26.8877, 15.0640, 39.0199)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B237A9 #37B240
analogous
#7D37B2 #B237A9 #B2376B
triadic
#B237A9 #A9B237 #37A9B2
tetradic
#B237A9 #B27D37 #37B240 #376BB2
square
#B237A9 #B27D37 #37B240 #376BB2
split-complementary
#B237A9 #6BB237 #37B27D
monochromatic
#541A50 #83297D #B237A9 #CC5AC4 #DB89D5

Accessibility & contrast

On white

5.23
#B237A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B237A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B237A9
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B237A9#FFFFFF#000000##FFFFFF
##B237A91.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D61AC
Deuteranopia (green-blind)
#5C72A6
Tritanopia (blue-blind)
#B9456C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b237a9;
/* rgb */ color: rgb(178, 55, 169);
/* oklch */ color: oklch(55.9% 0.203 331.0);
Tailwind
colors: {
  custom: {
    50: '#cc79c3',
    500: '#b237a9',
    950: '#000000',
  },
}
SCSS
$custom: #b237a9;
$custom-light: #cc79c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b237a9",
  "rgb": {
    "r": 178,
    "g": 55,
    "b": 169
  },
  "hsl": {
    "h": 304.39,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55865,
    "c": 0.2025,
    "h": 331
  },
  "luminance": 0.15062
}

Semantic roles & 50–950 ramp

primary
#B237A9
secondary
#80C585
accent
#DC564C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B237A9

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

Preview Lab → · Contrast checker → · Palette generator →

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