#B238C2#B238C2

#B238C2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.221 H 322.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B238C2
RGBrgb(178, 56, 194)
HSLhsl(293, 55%, 49%)
HSVhsv(293, 71%, 76%)
CMYKcmyk(8.2%, 71.1%, 0%, 23.9%)
CIE-LABlab(47.22, 66.06, -47.92)
CIE-LCHlch(47.22, 81.61, 324.04°)
OKLaboklab(57.39% 0.1764 -0.1337)
OKLCHoklch(57.39% 0.221 322.8)
XYZxyz(29.5109, 16.1901, 52.5991)
Luminance0.1619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238C2 #48C238
analogous
#6D38C2 #B238C2 #C2388D
triadic
#B238C2 #C2B238 #38C2B2
tetradic
#B238C2 #C26D38 #48C238 #388DC2
square
#B238C2 #C26D38 #48C238 #388DC2
split-complementary
#B238C2 #8DC238 #38C26D
monochromatic
#5B1D63 #862A93 #B238C2 #C665D2 #D794E0

Accessibility & contrast

On white

4.96
#B238C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#B238C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238C2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238C2#FFFFFF#000000##FFFFFF
##B238C21.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#4D75BF
Tritanopia (blue-blind)
#B5517A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b238c2;
/* rgb */ color: rgb(178, 56, 194);
/* oklch */ color: oklch(57.4% 0.221 322.8);
Tailwind
colors: {
  custom: {
    50: '#cd7ad5',
    500: '#b238c2',
    950: '#000000',
  },
}
SCSS
$custom: #b238c2;
$custom-light: #cd7ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#b238c2",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 293.043,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57386,
    "c": 0.22134,
    "h": 322.8
  },
  "luminance": 0.16188
}

Semantic roles & 50–950 ramp

primary
#B238C2
secondary
#92CB8A
accent
#DF495B
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B238C2

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

Preview Lab → · Contrast checker → · Palette generator →

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