#B239D6#B239D6

#B239D6 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.7% C 0.237 H 317.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B239D6
RGBrgb(178, 57, 214)
HSLhsl(286, 66%, 53%)
HSVhsv(286, 73%, 84%)
CMYKcmyk(16.8%, 73.4%, 0%, 16.1%)
CIE-LABlab(48.57, 69.37, -57.29)
CIE-LCHlch(48.57, 89.97, 320.45°)
OKLaboklab(58.74% 0.1739 -0.1612)
OKLCHoklch(58.74% 0.237 317.2)
XYZxyz(31.9590, 17.2476, 65.2510)
Luminance0.1725 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239D6 #5DD639
analogous
#6339D6 #B239D6 #D639AB
triadic
#B239D6 #D6B239 #39D6B2
tetradic
#B239D6 #D66339 #5DD639 #39ABD6
square
#B239D6 #D66339 #5DD639 #39ABD6
split-complementary
#B239D6 #ABD639 #39D663
monochromatic
#65197B #8E24AE #B239D6 #C66CE0 #D99EEB

Accessibility & contrast

On white

4.72
#B239D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B239D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239D6
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239D6#FFFFFF#000000##FFFFFF
##B239D61.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#3C77D3
Tritanopia (blue-blind)
#B05A85
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b239d6;
/* rgb */ color: rgb(178, 57, 214);
/* oklch */ color: oklch(58.7% 0.237 317.2);
Tailwind
colors: {
  custom: {
    50: '#cd7be3',
    500: '#b239d6',
    950: '#000000',
  },
}
SCSS
$custom: #b239d6;
$custom-light: #cd7be3;
$custom-dark: #000000;
JSON
{
  "hex": "#b239d6",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 214
  },
  "hsl": {
    "h": 286.242,
    "s": 65.69,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58737,
    "c": 0.23708,
    "h": 317.2
  },
  "luminance": 0.17246
}

Semantic roles & 50–950 ramp

primary
#B239D6
secondary
#A3D794
accent
#E93F66
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B239D6

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

Preview Lab → · Contrast checker → · Palette generator →

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