#B239D2#B239D2

#B239D2 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.5% C 0.234 H 318.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B239D2
RGBrgb(178, 57, 210)
HSLhsl(287, 63%, 52%)
HSVhsv(287, 73%, 82%)
CMYKcmyk(15.2%, 72.9%, 0%, 17.6%)
CIE-LABlab(48.32, 68.62, -55.41)
CIE-LCHlch(48.32, 88.19, 321.08°)
OKLaboklab(58.48% 0.1743 -0.1556)
OKLCHoklch(58.48% 0.234 318.2)
XYZxyz(31.4545, 17.0458, 62.5936)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239D2 #59D239
analogous
#6639D2 #B239D2 #D239A6
triadic
#B239D2 #D2B239 #39D2B2
tetradic
#B239D2 #D26639 #59D239 #39A6D2
square
#B239D2 #D26639 #59D239 #39A6D2
split-complementary
#B239D2 #A6D239 #39D266
monochromatic
#631B76 #8D26A8 #B239D2 #C56BDD #D99DE9

Accessibility & contrast

On white

4.76
#B239D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#B239D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239D2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239D2#FFFFFF#000000##FFFFFF
##B239D21.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#4076CF
Tritanopia (blue-blind)
#B15883
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b239d2;
/* rgb */ color: rgb(178, 57, 210);
/* oklch */ color: oklch(58.5% 0.234 318.2);
Tailwind
colors: {
  custom: {
    50: '#cd7be0',
    500: '#b239d2',
    950: '#000000',
  },
}
SCSS
$custom: #b239d2;
$custom-light: #cd7be0;
$custom-dark: #000000;
JSON
{
  "hex": "#b239d2",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 287.451,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58476,
    "c": 0.23367,
    "h": 318.2
  },
  "luminance": 0.17044
}

Semantic roles & 50–950 ramp

primary
#B239D2
secondary
#A0D592
accent
#E64264
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B239D2

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

Preview Lab → · Contrast checker → · Palette generator →

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