#B336BF#B336BF

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

Color values

HEX#B336BF
RGBrgb(179, 54, 191)
HSLhsl(295, 56%, 48%)
HSVhsv(295, 72%, 75%)
CMYKcmyk(6.3%, 71.7%, 0%, 25.1%)
CIE-LABlab(46.96, 66.45, -46.60)
CIE-LCHlch(46.96, 81.16, 324.96°)
OKLaboklab(57.17% 0.1795 -0.1298)
OKLCHoklch(57.17% 0.222 324.1)
XYZxyz(29.3127, 15.9854, 50.8217)
Luminance0.1598 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336BF #42BF36
analogous
#6F36BF #B336BF #BF3686
triadic
#B336BF #BFB336 #36BFB3
tetradic
#B336BF #BF6F36 #42BF36 #3686BF
square
#B336BF #BF6F36 #42BF36 #3686BF
split-complementary
#B336BF #86BF36 #36BF6F
monochromatic
#5A1B60 #86298F #B336BF #C860D2 #D990E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B336BF#FFFFFF#000000##FFFFFF
##B336BF1.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)
#0266C3
Deuteranopia (green-blind)
#4F74BC
Tritanopia (blue-blind)
#B64E77
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b336bf;
/* rgb */ color: rgb(179, 54, 191);
/* oklch */ color: oklch(57.2% 0.222 324.1);
Tailwind
colors: {
  custom: {
    50: '#ce79d3',
    500: '#b336bf',
    950: '#000000',
  },
}
SCSS
$custom: #b336bf;
$custom-light: #ce79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#b336bf",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 191
  },
  "hsl": {
    "h": 294.745,
    "s": 55.918,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57169,
    "c": 0.22156,
    "h": 324.1
  },
  "luminance": 0.15984
}

Semantic roles & 50–950 ramp

primary
#B336BF
secondary
#8CCA87
accent
#DF4956
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B336BF

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

Preview Lab → · Contrast checker → · Palette generator →

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