#B238DA#B238DA

#B238DA is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.9% C 0.242 H 316.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B238DA
RGBrgb(178, 56, 218)
HSLhsl(285, 69%, 54%)
HSVhsv(285, 74%, 85%)
CMYKcmyk(18.3%, 74.3%, 0%, 14.5%)
CIE-LABlab(48.71, 70.47, -59.36)
CIE-LCHlch(48.71, 92.14, 319.89°)
OKLaboklab(58.91% 0.1743 -0.1672)
OKLCHoklch(58.91% 0.242 316.2)
XYZxyz(32.4272, 17.3566, 67.9581)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238DA #60DA38
analogous
#6138DA #B238DA #DA38B1
triadic
#B238DA #DAB238 #38DAB2
tetradic
#B238DA #DA6138 #60DA38 #38B1DA
square
#B238DA #DA6138 #60DA38 #38B1DA
split-complementary
#B238DA #B1DA38 #38DA61
monochromatic
#661880 #8F21B3 #B238DA #C66CE4 #DA9FED

Accessibility & contrast

On white

4.70
#B238DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B238DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238DA
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238DA#FFFFFF#000000##FFFFFF
##B238DA1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDE
Deuteranopia (green-blind)
#3777D6
Tritanopia (blue-blind)
#AF5B87
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b238da;
/* rgb */ color: rgb(178, 56, 218);
/* oklch */ color: oklch(58.9% 0.242 316.2);
Tailwind
colors: {
  custom: {
    50: '#ce7be6',
    500: '#b238da',
    950: '#000000',
  },
}
SCSS
$custom: #b238da;
$custom-light: #ce7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b238da",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 285.185,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58915,
    "c": 0.24154,
    "h": 316.2
  },
  "luminance": 0.17355
}

Semantic roles & 50–950 ramp

primary
#B238DA
secondary
#A5DA94
accent
#EB3C68
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B238DA

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

Preview Lab → · Contrast checker → · Palette generator →

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