#B336C9#B336C9

#B336C9 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.8% C 0.230 H 321.2°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B336C9
RGBrgb(179, 54, 201)
HSLhsl(291, 58%, 50%)
HSVhsv(291, 73%, 79%)
CMYKcmyk(10.9%, 73.1%, 0%, 21.2%)
CIE-LABlab(47.55, 68.22, -51.45)
CIE-LCHlch(47.55, 85.45, 322.98°)
OKLaboklab(57.78% 0.179 -0.144)
OKLCHoklch(57.78% 0.23 321.2)
XYZxyz(30.4510, 16.4407, 56.8164)
Luminance0.1644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336C9 #4CC936
analogous
#6936C9 #B336C9 #C93696
triadic
#B336C9 #C9B336 #36C9B3
tetradic
#B336C9 #C96936 #4CC936 #3696C9
square
#B336C9 #C96936 #4CC936 #3696C9
split-complementary
#B336C9 #96C936 #36C969
monochromatic
#5D1C69 #882999 #B336C9 #C566D6 #D796E3

Accessibility & contrast

On white

4.90
#B336C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B336C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336C9
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336C9#FFFFFF#000000##FFFFFF
##B336C91.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CD
Deuteranopia (green-blind)
#4875C6
Tritanopia (blue-blind)
#B4527D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b336c9;
/* rgb */ color: rgb(179, 54, 201);
/* oklch */ color: oklch(57.8% 0.230 321.2);
Tailwind
colors: {
  custom: {
    50: '#ce79da',
    500: '#b336c9',
    950: '#000000',
  },
}
SCSS
$custom: #b336c9;
$custom-light: #ce79da;
$custom-dark: #000000;
JSON
{
  "hex": "#b336c9",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 201
  },
  "hsl": {
    "h": 291.02,
    "s": 57.647,
    "l": 50
  },
  "oklch": {
    "l": 0.57781,
    "c": 0.22973,
    "h": 321.2
  },
  "luminance": 0.16439
}

Semantic roles & 50–950 ramp

primary
#B336C9
secondary
#96CE8C
accent
#E1475E
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B336C9

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

Preview Lab → · Contrast checker → · Palette generator →

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