#B236D9#B236D9

#B236D9 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.7% C 0.243 H 316.5°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#B236D9
RGBrgb(178, 54, 217)
HSLhsl(286, 68%, 53%)
HSVhsv(286, 75%, 85%)
CMYKcmyk(18%, 75.1%, 0%, 14.9%)
CIE-LABlab(48.40, 70.96, -59.27)
CIE-LCHlch(48.40, 92.46, 320.13°)
OKLaboklab(58.68% 0.1762 -0.167)
OKLCHoklch(58.68% 0.243 316.5)
XYZxyz(32.2017, 17.1144, 67.2394)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B236D9 #5DD936
analogous
#6036D9 #B236D9 #D936AF
triadic
#B236D9 #D9B236 #36D9B2
tetradic
#B236D9 #D96036 #5DD936 #36AFD9
square
#B236D9 #D96036 #5DD936 #36AFD9
split-complementary
#B236D9 #AFD936 #36D960
monochromatic
#65187D #8E21B0 #B236D9 #C669E3 #D99DEC

Accessibility & contrast

On white

4.75
#B236D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#B236D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B236D9
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B236D9#FFFFFF#000000##FFFFFF
##B236D91.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#3676D5
Tritanopia (blue-blind)
#B05A86
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b236d9;
/* rgb */ color: rgb(178, 54, 217);
/* oklch */ color: oklch(58.7% 0.243 316.5);
Tailwind
colors: {
  custom: {
    50: '#ce7ae6',
    500: '#b236d9',
    950: '#000000',
  },
}
SCSS
$custom: #b236d9;
$custom-light: #ce7ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#b236d9",
  "rgb": {
    "r": 178,
    "g": 54,
    "b": 217
  },
  "hsl": {
    "h": 285.644,
    "s": 68.201,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5868,
    "c": 0.2427,
    "h": 316.5
  },
  "luminance": 0.17113
}

Semantic roles & 50–950 ramp

primary
#B236D9
secondary
#A3D992
accent
#EB3D66
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B236D9

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

Preview Lab → · Contrast checker → · Palette generator →

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