#B335B2#B335B2

#B335B2 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.3% C 0.212 H 328.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B335B2
RGBrgb(179, 53, 178)
HSLhsl(300, 54%, 45%)
HSVhsv(300, 70%, 70%)
CMYKcmyk(0%, 70.4%, 0.6%, 29.8%)
CIE-LABlab(46.10, 64.60, -40.34)
CIE-LCHlch(46.10, 76.16, 328.02°)
OKLaboklab(56.33% 0.1806 -0.1116)
OKLCHoklch(56.33% 0.212 328.3)
XYZxyz(27.8991, 15.3463, 43.6035)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335B2 #35B336
analogous
#7535B3 #B335B2 #B33573
triadic
#B335B2 #B2B335 #35B2B3
tetradic
#B335B2 #B37535 #35B336 #3573B3
square
#B335B2 #B37535 #35B336 #3573B3
split-complementary
#B335B2 #73B335 #35B375
monochromatic
#551954 #842783 #B335B2 #CD58CD #DB87DB

Accessibility & contrast

On white

5.16
#B335B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B335B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335B2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335B2#FFFFFF#000000##FFFFFF
##B335B21.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2163B5
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#B94770
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b335b2;
/* rgb */ color: rgb(179, 53, 178);
/* oklch */ color: oklch(56.3% 0.212 328.3);
Tailwind
colors: {
  custom: {
    50: '#cd78c9',
    500: '#b335b2',
    950: '#000000',
  },
}
SCSS
$custom: #b335b2;
$custom-light: #cd78c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b335b2",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 300.476,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56325,
    "c": 0.21233,
    "h": 328.3
  },
  "luminance": 0.15344
}

Semantic roles & 50–950 ramp

primary
#B335B2
secondary
#7FC57F
accent
#DE4B4A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B335B2

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

Preview Lab → · Contrast checker → · Palette generator →

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