#B231AF#B231AF

#B231AF is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.7% C 0.214 H 329.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B231AF
RGBrgb(178, 49, 175)
HSLhsl(301, 57%, 45%)
HSVhsv(301, 72%, 70%)
CMYKcmyk(0%, 72.5%, 1.7%, 30.2%)
CIE-LABlab(45.30, 65.24, -39.86)
CIE-LCHlch(45.30, 76.45, 328.58°)
OKLaboklab(55.67% 0.1834 -0.1102)
OKLCHoklch(55.67% 0.214 329)
XYZxyz(27.1960, 14.7588, 41.9655)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231AF #31B234
analogous
#7431B2 #B231AF #B2316F
triadic
#B231AF #AFB231 #31AFB2
tetradic
#B231AF #B27431 #31B234 #316FB2
square
#B231AF #B27431 #31B234 #316FB2
split-complementary
#B231AF #6FB231 #31B274
monochromatic
#521751 #822480 #B231AF #CF51CC #DC81DA

Accessibility & contrast

On white

5.31
#B231AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B231AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231AF
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231AF#FFFFFF#000000##FFFFFF
##B231AF1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D60B2
Deuteranopia (green-blind)
#5671AC
Tritanopia (blue-blind)
#B8436D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b231af;
/* rgb */ color: rgb(178, 49, 175);
/* oklch */ color: oklch(55.7% 0.214 329.0);
Tailwind
colors: {
  custom: {
    50: '#cd76c7',
    500: '#b231af',
    950: '#000000',
  },
}
SCSS
$custom: #b231af;
$custom-light: #cd76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b231af",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 301.395,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55665,
    "c": 0.21395,
    "h": 329
  },
  "luminance": 0.14757
}

Semantic roles & 50–950 ramp

primary
#B231AF
secondary
#79C57B
accent
#E04B48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B231AF

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

Preview Lab → · Contrast checker → · Palette generator →

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