#B239AB#B239AB

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

Color values

HEX#B239AB
RGBrgb(178, 57, 171)
HSLhsl(303, 51%, 46%)
HSVhsv(303, 68%, 70%)
CMYKcmyk(0%, 68%, 3.9%, 30.2%)
CIE-LABlab(46.09, 61.77, -36.25)
CIE-LCHlch(46.09, 71.62, 329.59°)
OKLaboklab(56.16% 0.1752 -0.0998)
OKLCHoklch(56.16% 0.202 330.3)
XYZxyz(27.1738, 15.3335, 40.0486)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239AB #39B240
analogous
#7C39B2 #B239AB #B2396E
triadic
#B239AB #ABB239 #39ABB2
tetradic
#B239AB #B27C39 #39B240 #396EB2
square
#B239AB #B27C39 #39B240 #396EB2
split-complementary
#B239AB #6EB239 #39B27C
monochromatic
#551B52 #842A7E #B239AB #CB5DC5 #DA8BD5

Accessibility & contrast

On white

5.16
#B239AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B239AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239AB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239AB#FFFFFF#000000##FFFFFF
##B239AB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E63AE
Deuteranopia (green-blind)
#5C73A8
Tritanopia (blue-blind)
#B9476D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b239ab;
/* rgb */ color: rgb(178, 57, 171);
/* oklch */ color: oklch(56.2% 0.202 330.3);
Tailwind
colors: {
  custom: {
    50: '#cc7ac4',
    500: '#b239ab',
    950: '#000000',
  },
}
SCSS
$custom: #b239ab;
$custom-light: #cc7ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#b239ab",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 303.471,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56162,
    "c": 0.20161,
    "h": 330.3
  },
  "luminance": 0.15332
}

Semantic roles & 50–950 ramp

primary
#B239AB
secondary
#82C486
accent
#DB554D
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B239AB

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

Preview Lab → · Contrast checker → · Palette generator →

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