#B238C1#B238C1

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

Color values

HEX#B238C1
RGBrgb(178, 56, 193)
HSLhsl(293, 55%, 49%)
HSVhsv(293, 71%, 76%)
CMYKcmyk(7.8%, 71%, 0%, 24.3%)
CIE-LABlab(47.16, 65.88, -47.44)
CIE-LCHlch(47.16, 81.18, 324.25°)
OKLaboklab(57.33% 0.1764 -0.1323)
OKLCHoklch(57.33% 0.221 323.1)
XYZxyz(29.3990, 16.1453, 52.0096)
Luminance0.1614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238C1 #47C138
analogous
#6E38C1 #B238C1 #C1388C
triadic
#B238C1 #C1B238 #38C1B2
tetradic
#B238C1 #C16E38 #47C138 #388CC1
square
#B238C1 #C16E38 #47C138 #388CC1
split-complementary
#B238C1 #8CC138 #38C16E
monochromatic
#5B1C62 #862A92 #B238C1 #C664D2 #D794E0

Accessibility & contrast

On white

4.97
#B238C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B238C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238C1
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238C1#FFFFFF#000000##FFFFFF
##B238C11.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0167C5
Deuteranopia (green-blind)
#4E75BE
Tritanopia (blue-blind)
#B55079
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b238c1;
/* rgb */ color: rgb(178, 56, 193);
/* oklch */ color: oklch(57.3% 0.221 323.1);
Tailwind
colors: {
  custom: {
    50: '#cd7ad4',
    500: '#b238c1',
    950: '#000000',
  },
}
SCSS
$custom: #b238c1;
$custom-light: #cd7ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#b238c1",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 293.431,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57325,
    "c": 0.22051,
    "h": 323.1
  },
  "luminance": 0.16144
}

Semantic roles & 50–950 ramp

primary
#B238C1
secondary
#91CB8A
accent
#DE495A
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B238C1

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

Preview Lab → · Contrast checker → · Palette generator →

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