#B335B8#B335B8

#B335B8 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.217 H 326.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#B335B8
RGBrgb(179, 53, 184)
HSLhsl(298, 55%, 46%)
HSVhsv(298, 71%, 72%)
CMYKcmyk(2.7%, 71.2%, 0%, 27.8%)
CIE-LABlab(46.44, 65.60, -43.34)
CIE-LCHlch(46.44, 78.62, 326.55°)
OKLaboklab(56.67% 0.1806 -0.1203)
OKLCHoklch(56.67% 0.217 326.3)
XYZxyz(28.5147, 15.5925, 46.8459)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335B8 #3AB835
analogous
#7235B8 #B335B8 #B8357C
triadic
#B335B8 #B8B335 #35B8B3
tetradic
#B335B8 #B87235 #3AB835 #357CB8
square
#B335B8 #B87235 #3AB835 #357CB8
split-complementary
#B335B8 #7CB835 #35B872
monochromatic
#571A59 #852788 #B335B8 #CB5BD0 #DA8ADD

Accessibility & contrast

On white

5.10
#B335B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#B335B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335B8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335B8#FFFFFF#000000##FFFFFF
##B335B81.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1664BC
Deuteranopia (green-blind)
#5373B5
Tritanopia (blue-blind)
#B84A73
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b335b8;
/* rgb */ color: rgb(179, 53, 184);
/* oklch */ color: oklch(56.7% 0.217 326.3);
Tailwind
colors: {
  custom: {
    50: '#cd78ce',
    500: '#b335b8',
    950: '#000000',
  },
}
SCSS
$custom: #b335b8;
$custom-light: #cd78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b335b8",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 297.71,
    "s": 55.274,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56669,
    "c": 0.21705,
    "h": 326.3
  },
  "luminance": 0.15591
}

Semantic roles & 50–950 ramp

primary
#B335B8
secondary
#84C781
accent
#DF494F
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B335B8

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

Preview Lab → · Contrast checker → · Palette generator →

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