#B335C2#B335C2

#B335C2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.3% C 0.225 H 323.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B335C2
RGBrgb(179, 53, 194)
HSLhsl(294, 57%, 48%)
HSVhsv(294, 73%, 76%)
CMYKcmyk(7.7%, 72.7%, 0%, 23.9%)
CIE-LABlab(47.01, 67.32, -48.26)
CIE-LCHlch(47.01, 82.83, 324.37°)
OKLaboklab(57.26% 0.1804 -0.1347)
OKLCHoklch(57.26% 0.225 323.3)
XYZxyz(29.6002, 16.0267, 52.5628)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335C2 #44C235
analogous
#6C35C2 #B335C2 #C2358A
triadic
#B335C2 #C2B335 #35C2B3
tetradic
#B335C2 #C26C35 #44C235 #358AC2
square
#B335C2 #C26C35 #44C235 #358AC2
split-complementary
#B335C2 #8AC235 #35C26C
monochromatic
#5A1B62 #872892 #B335C2 #C760D4 #D891E1

Accessibility & contrast

On white

4.99
#B335C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B335C2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335C2#FFFFFF#000000##FFFFFF
##B335C21.004.994.204.99
#FFFFFF4.991.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#4D74BF
Tritanopia (blue-blind)
#B64F79
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b335c2;
/* rgb */ color: rgb(179, 53, 194);
/* oklch */ color: oklch(57.3% 0.225 323.3);
Tailwind
colors: {
  custom: {
    50: '#ce79d5',
    500: '#b335c2',
    950: '#000000',
  },
}
SCSS
$custom: #b335c2;
$custom-light: #ce79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b335c2",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 194
  },
  "hsl": {
    "h": 293.617,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57264,
    "c": 0.22508,
    "h": 323.3
  },
  "luminance": 0.16025
}

Semantic roles & 50–950 ramp

primary
#B335C2
secondary
#8ECC87
accent
#E04758
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B335C2

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

Preview Lab → · Contrast checker → · Palette generator →

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