#B239D1#B239D1

#B239D1 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.4% C 0.233 H 318.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B239D1
RGBrgb(178, 57, 209)
HSLhsl(288, 62%, 52%)
HSVhsv(288, 73%, 82%)
CMYKcmyk(14.8%, 72.7%, 0%, 18%)
CIE-LABlab(48.26, 68.43, -54.93)
CIE-LCHlch(48.26, 87.75, 321.24°)
OKLaboklab(58.41% 0.1744 -0.1542)
OKLCHoklch(58.41% 0.233 318.5)
XYZxyz(31.3303, 16.9961, 61.9395)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239D1 #58D139
analogous
#6639D1 #B239D1 #D139A4
triadic
#B239D1 #D1B239 #39D1B2
tetradic
#B239D1 #D16639 #58D139 #39A4D1
square
#B239D1 #D16639 #58D139 #39A4D1
split-complementary
#B239D1 #A4D139 #39D166
monochromatic
#621B75 #8C27A6 #B239D1 #C56BDD #D99CE8

Accessibility & contrast

On white

4.77
#B239D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B239D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239D1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239D1#FFFFFF#000000##FFFFFF
##B239D11.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#4176CE
Tritanopia (blue-blind)
#B15882
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b239d1;
/* rgb */ color: rgb(178, 57, 209);
/* oklch */ color: oklch(58.4% 0.233 318.5);
Tailwind
colors: {
  custom: {
    50: '#cd7be0',
    500: '#b239d1',
    950: '#000000',
  },
}
SCSS
$custom: #b239d1;
$custom-light: #cd7be0;
$custom-dark: #000000;
JSON
{
  "hex": "#b239d1",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 209
  },
  "hsl": {
    "h": 287.763,
    "s": 62.295,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58412,
    "c": 0.23282,
    "h": 318.5
  },
  "luminance": 0.16995
}

Semantic roles & 50–950 ramp

primary
#B239D1
secondary
#9FD492
accent
#E54264
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B239D1

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

Preview Lab → · Contrast checker → · Palette generator →

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