#B237AF#B237AF

#B237AF is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.2% C 0.207 H 328.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B237AF
RGBrgb(178, 55, 175)
HSLhsl(301, 53%, 46%)
HSVhsv(301, 69%, 70%)
CMYKcmyk(0%, 69.1%, 1.7%, 30.2%)
CIE-LABlab(46.03, 63.16, -38.69)
CIE-LCHlch(46.03, 74.07, 328.51°)
OKLaboklab(56.19% 0.1775 -0.1069)
OKLCHoklch(56.19% 0.207 328.9)
XYZxyz(27.4639, 15.2945, 42.0547)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B237AF #37B23A
analogous
#7737B2 #B237AF #B23772
triadic
#B237AF #AFB237 #37AFB2
tetradic
#B237AF #B27737 #37B23A #3772B2
square
#B237AF #B27737 #37B23A #3772B2
split-complementary
#B237AF #72B237 #37B277
monochromatic
#541A53 #832981 #B237AF #CC5AC9 #DB89D9

Accessibility & contrast

On white

5.17
#B237AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B237AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B237AF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B237AF#FFFFFF#000000##FFFFFF
##B237AF1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2763B2
Deuteranopia (green-blind)
#5873AC
Tritanopia (blue-blind)
#B8486F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b237af;
/* rgb */ color: rgb(178, 55, 175);
/* oklch */ color: oklch(56.2% 0.207 328.9);
Tailwind
colors: {
  custom: {
    50: '#cd79c7',
    500: '#b237af',
    950: '#000000',
  },
}
SCSS
$custom: #b237af;
$custom-light: #cd79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b237af",
  "rgb": {
    "r": 178,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 301.463,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56192,
    "c": 0.20716,
    "h": 328.9
  },
  "luminance": 0.15292
}

Semantic roles & 50–950 ramp

primary
#B237AF
secondary
#80C582
accent
#DC4F4C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B237AF

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

Preview Lab → · Contrast checker → · Palette generator →

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