#B239A8#B239A8

#B239A8 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 56.0% C 0.199 H 331.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B239A8
RGBrgb(178, 57, 168)
HSLhsl(305, 51%, 46%)
HSVhsv(305, 68%, 70%)
CMYKcmyk(0%, 68%, 5.6%, 30.2%)
CIE-LABlab(45.93, 61.28, -34.72)
CIE-LCHlch(45.93, 70.43, 330.47°)
OKLaboklab(56% 0.175 -0.0954)
OKLCHoklch(56% 0.199 331.4)
XYZxyz(26.8911, 15.2205, 38.5597)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239A8 #39B243
analogous
#7F39B2 #B239A8 #B2396B
triadic
#B239A8 #A8B239 #39A8B2
tetradic
#B239A8 #B27F39 #39B243 #396BB2
square
#B239A8 #B27F39 #39B243 #396BB2
split-complementary
#B239A8 #6BB239 #39B27F
monochromatic
#551B50 #842A7C #B239A8 #CB5DC2 #DA8BD3

Accessibility & contrast

On white

5.19
#B239A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#B239A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239A8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239A8#FFFFFF#000000##FFFFFF
##B239A81.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#5D73A5
Tritanopia (blue-blind)
#B9466C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b239a8;
/* rgb */ color: rgb(178, 57, 168);
/* oklch */ color: oklch(56.0% 0.199 331.4);
Tailwind
colors: {
  custom: {
    50: '#cc79c2',
    500: '#b239a8',
    950: '#000000',
  },
}
SCSS
$custom: #b239a8;
$custom-light: #cc79c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b239a8",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 168
  },
  "hsl": {
    "h": 304.959,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56002,
    "c": 0.19928,
    "h": 331.4
  },
  "luminance": 0.15218
}

Semantic roles & 50–950 ramp

primary
#B239A8
secondary
#82C488
accent
#DB594D
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B239A8

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

Preview Lab → · Contrast checker → · Palette generator →

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