#B239B2#B239B2

#B239B2 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.5% C 0.207 H 327.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#B239B2
RGBrgb(178, 57, 178)
HSLhsl(300, 51%, 46%)
HSVhsv(300, 68%, 70%)
CMYKcmyk(0%, 68%, 0%, 30.2%)
CIE-LABlab(46.46, 62.93, -39.80)
CIE-LCHlch(46.46, 74.46, 327.69°)
OKLaboklab(56.55% 0.1755 -0.1101)
OKLCHoklch(56.55% 0.207 327.9)
XYZxyz(27.8587, 15.6075, 43.6561)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239B2 #39B239
analogous
#7539B2 #B239B2 #B23975
triadic
#B239B2 #B2B239 #39B2B2
tetradic
#B239B2 #B27539 #39B239 #3975B2
square
#B239B2 #B27539 #39B239 #3975B2
split-complementary
#B239B2 #75B239 #39B275
monochromatic
#551B55 #842A84 #B239B2 #CB5DCB #DA8BDA

Accessibility & contrast

On white

5.10
#B239B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#B239B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239B2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239B2#FFFFFF#000000##FFFFFF
##B239B21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#B74A71
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b239b2;
/* rgb */ color: rgb(178, 57, 178);
/* oklch */ color: oklch(56.5% 0.207 327.9);
Tailwind
colors: {
  custom: {
    50: '#cc7ac9',
    500: '#b239b2',
    950: '#000000',
  },
}
SCSS
$custom: #b239b2;
$custom-light: #cc7ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#b239b2",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56546,
    "c": 0.20714,
    "h": 327.9
  },
  "luminance": 0.15606
}

Semantic roles & 50–950 ramp

primary
#B239B2
secondary
#82C482
accent
#DB4D4D
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B239B2

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

Preview Lab → · Contrast checker → · Palette generator →

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