#B238CD#B238CD

#B238CD is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.1% C 0.231 H 319.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B238CD
RGBrgb(178, 56, 205)
HSLhsl(289, 60%, 51%)
HSVhsv(289, 73%, 80%)
CMYKcmyk(13.2%, 72.7%, 0%, 19.6%)
CIE-LABlab(47.88, 68.05, -53.23)
CIE-LCHlch(47.88, 86.39, 321.97°)
OKLaboklab(58.07% 0.1757 -0.1493)
OKLCHoklch(58.07% 0.231 319.6)
XYZxyz(30.7923, 16.7026, 59.3478)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238CD #53CD38
analogous
#6738CD #B238CD #CD389D
triadic
#B238CD #CDB238 #38CDB2
tetradic
#B238CD #CD6738 #53CD38 #389DCD
square
#B238CD #CD6738 #53CD38 #389DCD
split-complementary
#B238CD #9DCD38 #38CD67
monochromatic
#601C6F #8A28A0 #B238CD #C569D9 #D89AE6

Accessibility & contrast

On white

4.84
#B238CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B238CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238CD
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238CD#FFFFFF#000000##FFFFFF
##B238CD1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#4476CA
Tritanopia (blue-blind)
#B25680
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b238cd;
/* rgb */ color: rgb(178, 56, 205);
/* oklch */ color: oklch(58.1% 0.231 319.6);
Tailwind
colors: {
  custom: {
    50: '#cd7add',
    500: '#b238cd',
    950: '#000000',
  },
}
SCSS
$custom: #b238cd;
$custom-light: #cd7add;
$custom-dark: #000000;
JSON
{
  "hex": "#b238cd",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 289.128,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58068,
    "c": 0.23052,
    "h": 319.6
  },
  "luminance": 0.16701
}

Semantic roles & 50–950 ramp

primary
#B238CD
secondary
#9BD18F
accent
#E34561
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B238CD

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

Preview Lab → · Contrast checker → · Palette generator →

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