#B239A7#B239A7

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

Color values

HEX#B239A7
RGBrgb(178, 57, 167)
HSLhsl(305, 51%, 46%)
HSVhsv(305, 68%, 70%)
CMYKcmyk(0%, 68%, 6.2%, 30.2%)
CIE-LABlab(45.88, 61.12, -34.20)
CIE-LCHlch(45.88, 70.04, 330.77°)
OKLaboklab(55.95% 0.1749 -0.0939)
OKLCHoklch(55.95% 0.199 331.8)
XYZxyz(26.7983, 15.1833, 38.0710)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239A7 #39B244
analogous
#8039B2 #B239A7 #B2396A
triadic
#B239A7 #A7B239 #39A7B2
tetradic
#B239A7 #B28039 #39B244 #396AB2
square
#B239A7 #B28039 #39B244 #396AB2
split-complementary
#B239A7 #6AB239 #39B280
monochromatic
#551B50 #842A7C #B239A7 #CB5DC1 #DA8BD3

Accessibility & contrast

On white

5.20
#B239A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B239A7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239A7#FFFFFF#000000##FFFFFF
##B239A71.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3262AA
Deuteranopia (green-blind)
#5D73A4
Tritanopia (blue-blind)
#B9456B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b239a7;
/* rgb */ color: rgb(178, 57, 167);
/* oklch */ color: oklch(55.9% 0.199 331.8);
Tailwind
colors: {
  custom: {
    50: '#cc79c1',
    500: '#b239a7',
    950: '#000000',
  },
}
SCSS
$custom: #b239a7;
$custom-light: #cc79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b239a7",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 167
  },
  "hsl": {
    "h": 305.455,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55949,
    "c": 0.19851,
    "h": 331.8
  },
  "luminance": 0.15181
}

Semantic roles & 50–950 ramp

primary
#B239A7
secondary
#82C488
accent
#DB5A4D
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B239A7

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

Preview Lab → · Contrast checker → · Palette generator →

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