#B239C8#B239C8

#B239C8 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.8% C 0.225 H 321.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B239C8
RGBrgb(178, 57, 200)
HSLhsl(291, 57%, 50%)
HSVhsv(291, 72%, 78%)
CMYKcmyk(11%, 71.5%, 0%, 21.6%)
CIE-LABlab(47.70, 66.78, -50.63)
CIE-LCHlch(47.70, 83.80, 322.83°)
OKLaboklab(57.84% 0.1751 -0.1417)
OKLCHoklch(57.84% 0.225 321)
XYZxyz(30.2474, 16.5630, 56.2361)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239C8 #4FC839
analogous
#6A39C8 #B239C8 #C83997
triadic
#B239C8 #C8B239 #39C8B2
tetradic
#B239C8 #C86A39 #4FC839 #3997C8
square
#B239C8 #C86A39 #4FC839 #3997C8
split-complementary
#B239C8 #97C839 #39C86A
monochromatic
#5E1D69 #882B99 #B239C8 #C569D5 #D799E3

Accessibility & contrast

On white

4.87
#B239C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B239C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239C8
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239C8#FFFFFF#000000##FFFFFF
##B239C81.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#4976C5
Tritanopia (blue-blind)
#B3547D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b239c8;
/* rgb */ color: rgb(178, 57, 200);
/* oklch */ color: oklch(57.8% 0.225 321.0);
Tailwind
colors: {
  custom: {
    50: '#cd7bd9',
    500: '#b239c8',
    950: '#000000',
  },
}
SCSS
$custom: #b239c8;
$custom-light: #cd7bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b239c8",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 200
  },
  "hsl": {
    "h": 290.769,
    "s": 56.522,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57844,
    "c": 0.22521,
    "h": 321
  },
  "luminance": 0.16561
}

Semantic roles & 50–950 ramp

primary
#B239C8
secondary
#98CE8F
accent
#E0485F
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B239C8

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

Preview Lab → · Contrast checker → · Palette generator →

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