#B238D5#B238D5

#B238D5 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.6% C 0.237 H 317.5°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#B238D5
RGBrgb(178, 56, 213)
HSLhsl(287, 65%, 53%)
HSVhsv(287, 74%, 84%)
CMYKcmyk(16.4%, 73.7%, 0%, 16.5%)
CIE-LABlab(48.38, 69.53, -57.02)
CIE-LCHlch(48.38, 89.92, 320.65°)
OKLaboklab(58.58% 0.1749 -0.1604)
OKLCHoklch(58.58% 0.237 317.5)
XYZxyz(31.7828, 17.0988, 64.5641)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238D5 #5BD538
analogous
#6338D5 #B238D5 #D538AA
triadic
#B238D5 #D5B238 #38D5B2
tetradic
#B238D5 #D56338 #5BD538 #38AAD5
square
#B238D5 #D56338 #5BD538 #38AAD5
split-complementary
#B238D5 #AAD538 #38D563
monochromatic
#641A79 #8D24AC #B238D5 #C66BE0 #D99DEA

Accessibility & contrast

On white

4.75
#B238D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#B238D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238D5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238D5#FFFFFF#000000##FFFFFF
##B238D51.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#3C77D2
Tritanopia (blue-blind)
#B15984
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b238d5;
/* rgb */ color: rgb(178, 56, 213);
/* oklch */ color: oklch(58.6% 0.237 317.5);
Tailwind
colors: {
  custom: {
    50: '#cd7be3',
    500: '#b238d5',
    950: '#000000',
  },
}
SCSS
$custom: #b238d5;
$custom-light: #cd7be3;
$custom-dark: #000000;
JSON
{
  "hex": "#b238d5",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 286.624,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58584,
    "c": 0.23728,
    "h": 317.5
  },
  "luminance": 0.17097
}

Semantic roles & 50–950 ramp

primary
#B238D5
secondary
#A2D692
accent
#E84065
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A15
muted
#837C84

Preview Lab

Preview with #B238D5

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

Preview Lab → · Contrast checker → · Palette generator →

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