#B239A2#B239A2

#B239A2 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.7% C 0.195 H 333.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B239A2
RGBrgb(178, 57, 162)
HSLhsl(308, 51%, 46%)
HSVhsv(308, 68%, 70%)
CMYKcmyk(0%, 68%, 9%, 30.2%)
CIE-LABlab(45.64, 60.33, -31.62)
CIE-LCHlch(45.64, 68.11, 332.34°)
OKLaboklab(55.69% 0.1744 -0.0865)
OKLCHoklch(55.69% 0.195 333.6)
XYZxyz(26.3450, 15.0020, 35.6836)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239A2 #39B249
analogous
#8539B2 #B239A2 #B23965
triadic
#B239A2 #A2B239 #39A2B2
tetradic
#B239A2 #B28539 #39B249 #3965B2
square
#B239A2 #B28539 #39B249 #3965B2
split-complementary
#B239A2 #65B239 #39B285
monochromatic
#551B4E #842A78 #B239A2 #CB5DBD #DA8BD0

Accessibility & contrast

On white

5.25
#B239A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B239A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239A2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239A2#FFFFFF#000000##FFFFFF
##B239A21.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#60729F
Tritanopia (blue-blind)
#BA4369
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b239a2;
/* rgb */ color: rgb(178, 57, 162);
/* oklch */ color: oklch(55.7% 0.195 333.6);
Tailwind
colors: {
  custom: {
    50: '#cc79be',
    500: '#b239a2',
    950: '#000000',
  },
}
SCSS
$custom: #b239a2;
$custom-light: #cc79be;
$custom-dark: #000000;
JSON
{
  "hex": "#b239a2",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 162
  },
  "hsl": {
    "h": 307.934,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5569,
    "c": 0.19471,
    "h": 333.6
  },
  "luminance": 0.15
}

Semantic roles & 50–950 ramp

primary
#B239A2
secondary
#82C48B
accent
#DB604D
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B239A2

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

Preview Lab → · Contrast checker → · Palette generator →

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