#B238C0#B238C0

#B238C0 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.3% C 0.220 H 323.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B238C0
RGBrgb(178, 56, 192)
HSLhsl(294, 55%, 49%)
HSVhsv(294, 71%, 75%)
CMYKcmyk(7.3%, 70.8%, 0%, 24.7%)
CIE-LABlab(47.11, 65.71, -46.95)
CIE-LCHlch(47.11, 80.75, 324.45°)
OKLaboklab(57.27% 0.1764 -0.1309)
OKLCHoklch(57.27% 0.22 323.4)
XYZxyz(29.2878, 16.1008, 51.4241)
Luminance0.1610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238C0 #46C038
analogous
#6E38C0 #B238C0 #C0388A
triadic
#B238C0 #C0B238 #38C0B2
tetradic
#B238C0 #C06E38 #46C038 #388AC0
square
#B238C0 #C06E38 #46C038 #388AC0
split-complementary
#B238C0 #8AC038 #38C06E
monochromatic
#5A1C61 #862A91 #B238C0 #C664D2 #D893DF

Accessibility & contrast

On white

4.98
#B238C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B238C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238C0
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238C0#FFFFFF#000000##FFFFFF
##B238C01.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0567C4
Deuteranopia (green-blind)
#4F75BD
Tritanopia (blue-blind)
#B55079
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b238c0;
/* rgb */ color: rgb(178, 56, 192);
/* oklch */ color: oklch(57.3% 0.220 323.4);
Tailwind
colors: {
  custom: {
    50: '#cd7ad4',
    500: '#b238c0',
    950: '#000000',
  },
}
SCSS
$custom: #b238c0;
$custom-light: #cd7ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#b238c0",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 293.824,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57265,
    "c": 0.21969,
    "h": 323.4
  },
  "luminance": 0.16099
}

Semantic roles & 50–950 ramp

primary
#B238C0
secondary
#90CB89
accent
#DE4A59
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B238C0

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

Preview Lab → · Contrast checker → · Palette generator →

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