#B336D9#B336D9

#B336D9 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.8% C 0.243 H 316.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B336D9
RGBrgb(179, 54, 217)
HSLhsl(286, 68%, 53%)
HSVhsv(286, 75%, 85%)
CMYKcmyk(17.5%, 75.1%, 0%, 14.9%)
CIE-LABlab(48.55, 71.15, -59.03)
CIE-LCHlch(48.55, 92.45, 320.32°)
OKLaboklab(58.82% 0.1774 -0.1662)
OKLCHoklch(58.82% 0.243 316.9)
XYZxyz(32.4321, 17.2332, 67.2502)
Luminance0.1723 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336D9 #5CD936
analogous
#6136D9 #B336D9 #D936AE
triadic
#B336D9 #D9B336 #36D9B3
tetradic
#B336D9 #D96136 #5CD936 #36AED9
square
#B336D9 #D96136 #5CD936 #36AED9
split-complementary
#B336D9 #AED936 #36D961
monochromatic
#65187D #8F21B0 #B336D9 #C669E3 #DA9DEC

Accessibility & contrast

On white

4.72
#B336D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B336D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336D9
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336D9#FFFFFF#000000##FFFFFF
##B336D91.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b336d9;
/* rgb */ color: rgb(179, 54, 217);
/* oklch */ color: oklch(58.8% 0.243 316.9);
Tailwind
colors: {
  custom: {
    50: '#ce7ae6',
    500: '#b336d9',
    950: '#000000',
  },
}
SCSS
$custom: #b336d9;
$custom-light: #ce7ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#b336d9",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 217
  },
  "hsl": {
    "h": 286.012,
    "s": 68.201,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58815,
    "c": 0.24306,
    "h": 316.9
  },
  "luminance": 0.17232
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B336D9

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

Preview Lab → · Contrast checker → · Palette generator →

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