#B239D4#B239D4

#B239D4 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.6% C 0.235 H 317.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B239D4
RGBrgb(178, 57, 212)
HSLhsl(287, 64%, 53%)
HSVhsv(287, 73%, 83%)
CMYKcmyk(16%, 73.1%, 0%, 16.9%)
CIE-LABlab(48.44, 68.99, -56.35)
CIE-LCHlch(48.44, 89.08, 320.76°)
OKLaboklab(58.61% 0.1741 -0.1584)
OKLCHoklch(58.61% 0.235 317.7)
XYZxyz(31.7052, 17.1461, 63.9141)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239D4 #5BD439
analogous
#6539D4 #B239D4 #D439A8
triadic
#B239D4 #D4B239 #39D4B2
tetradic
#B239D4 #D46539 #5BD439 #39A8D4
square
#B239D4 #D46539 #5BD439 #39A8D4
split-complementary
#B239D4 #A8D439 #39D465
monochromatic
#641A78 #8D25AB #B239D4 #C66BDF #D99EEA

Accessibility & contrast

On white

4.74
#B239D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#B239D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239D4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239D4#FFFFFF#000000##FFFFFF
##B239D41.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#3E77D1
Tritanopia (blue-blind)
#B15984
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b239d4;
/* rgb */ color: rgb(178, 57, 212);
/* oklch */ color: oklch(58.6% 0.235 317.7);
Tailwind
colors: {
  custom: {
    50: '#cd7be2',
    500: '#b239d4',
    950: '#000000',
  },
}
SCSS
$custom: #b239d4;
$custom-light: #cd7be2;
$custom-dark: #000000;
JSON
{
  "hex": "#b239d4",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 212
  },
  "hsl": {
    "h": 286.839,
    "s": 64.315,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58606,
    "c": 0.23537,
    "h": 317.7
  },
  "luminance": 0.17145
}

Semantic roles & 50–950 ramp

primary
#B239D4
secondary
#A2D693
accent
#E74065
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B239D4

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

Preview Lab → · Contrast checker → · Palette generator →

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