#B239B7#B239B7

#B239B7 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.8% C 0.211 H 326.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B239B7
RGBrgb(178, 57, 183)
HSLhsl(298, 53%, 47%)
HSVhsv(298, 69%, 72%)
CMYKcmyk(2.7%, 68.9%, 0%, 28.2%)
CIE-LABlab(46.73, 63.78, -42.30)
CIE-LCHlch(46.73, 76.53, 326.45°)
OKLaboklab(56.83% 0.1756 -0.1174)
OKLCHoklch(56.83% 0.211 326.2)
XYZxyz(28.3699, 15.8120, 46.3483)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239B7 #3EB739
analogous
#7339B7 #B239B7 #B7397D
triadic
#B239B7 #B7B239 #39B7B2
tetradic
#B239B7 #B77339 #3EB739 #397DB7
square
#B239B7 #B77339 #3EB739 #397DB7
split-complementary
#B239B7 #7DB739 #39B773
monochromatic
#571C5A #852A88 #B239B7 #C960CD #D98EDC

Accessibility & contrast

On white

5.05
#B239B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#B239B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B239B7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239B7#FFFFFF#000000##FFFFFF
##B239B71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#5574B4
Tritanopia (blue-blind)
#B74C74
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b239b7;
/* rgb */ color: rgb(178, 57, 183);
/* oklch */ color: oklch(56.8% 0.211 326.2);
Tailwind
colors: {
  custom: {
    50: '#cd7acd',
    500: '#b239b7',
    950: '#000000',
  },
}
SCSS
$custom: #b239b7;
$custom-light: #cd7acd;
$custom-dark: #000000;
JSON
{
  "hex": "#b239b7",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 297.619,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56829,
    "c": 0.21117,
    "h": 326.2
  },
  "luminance": 0.1581
}

Semantic roles & 50–950 ramp

primary
#B239B7
secondary
#88C785
accent
#DC4C52
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B239B7

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

Preview Lab → · Contrast checker → · Palette generator →

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