#B236C2#B236C2

#B236C2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.2% C 0.224 H 322.9°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#B236C2
RGBrgb(178, 54, 194)
HSLhsl(293, 56%, 49%)
HSVhsv(293, 72%, 76%)
CMYKcmyk(8.2%, 72.2%, 0%, 23.9%)
CIE-LABlab(46.97, 66.77, -48.32)
CIE-LCHlch(46.97, 82.42, 324.11°)
OKLaboklab(57.21% 0.1783 -0.1349)
OKLCHoklch(57.21% 0.224 322.9)
XYZxyz(29.4159, 16.0001, 52.5674)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B236C2 #46C236
analogous
#6C36C2 #B236C2 #C2368C
triadic
#B236C2 #C2B236 #36C2B2
tetradic
#B236C2 #C26C36 #46C236 #368CC2
square
#B236C2 #C26C36 #46C236 #368CC2
split-complementary
#B236C2 #8CC236 #36C26C
monochromatic
#5A1B62 #862992 #B236C2 #C662D3 #D892E1

Accessibility & contrast

On white

5.00
#B236C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#B236C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B236C2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B236C2#FFFFFF#000000##FFFFFF
##B236C21.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#4C74BF
Tritanopia (blue-blind)
#B54F79
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b236c2;
/* rgb */ color: rgb(178, 54, 194);
/* oklch */ color: oklch(57.2% 0.224 322.9);
Tailwind
colors: {
  custom: {
    50: '#cd79d5',
    500: '#b236c2',
    950: '#000000',
  },
}
SCSS
$custom: #b236c2;
$custom-light: #cd79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b236c2",
  "rgb": {
    "r": 178,
    "g": 54,
    "b": 194
  },
  "hsl": {
    "h": 293.143,
    "s": 56.452,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57208,
    "c": 0.22356,
    "h": 322.9
  },
  "luminance": 0.15998
}

Semantic roles & 50–950 ramp

primary
#B236C2
secondary
#90CC88
accent
#E04859
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B236C2

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

Preview Lab → · Contrast checker → · Palette generator →

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