#B335AC#B335AC

#B335AC is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.0% C 0.208 H 330.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B335AC
RGBrgb(179, 53, 172)
HSLhsl(303, 54%, 45%)
HSVhsv(303, 70%, 70%)
CMYKcmyk(0%, 70.4%, 3.9%, 29.8%)
CIE-LABlab(45.79, 63.62, -37.31)
CIE-LCHlch(45.79, 73.75, 329.61°)
OKLaboklab(55.99% 0.1805 -0.1028)
OKLCHoklch(55.99% 0.208 330.3)
XYZxyz(27.3098, 15.1106, 40.5000)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335AC #35B33C
analogous
#7B35B3 #B335AC #B3356D
triadic
#B335AC #ACB335 #35ACB3
tetradic
#B335AC #B37B35 #35B33C #356DB3
square
#B335AC #B37B35 #35B33C #356DB3
split-complementary
#B335AC #6DB335 #35B37B
monochromatic
#551951 #84277F #B335AC #CD58C7 #DB87D7

Accessibility & contrast

On white

5.22
#B335AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B335AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335AC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335AC#FFFFFF#000000##FFFFFF
##B335AC1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AF
Deuteranopia (green-blind)
#5A72A9
Tritanopia (blue-blind)
#BA456D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b335ac;
/* rgb */ color: rgb(179, 53, 172);
/* oklch */ color: oklch(56.0% 0.208 330.3);
Tailwind
colors: {
  custom: {
    50: '#cd78c5',
    500: '#b335ac',
    950: '#000000',
  },
}
SCSS
$custom: #b335ac;
$custom-light: #cd78c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b335ac",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 172
  },
  "hsl": {
    "h": 303.333,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55992,
    "c": 0.2077,
    "h": 330.3
  },
  "luminance": 0.15108
}

Semantic roles & 50–950 ramp

primary
#B335AC
secondary
#7FC582
accent
#DE524A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B335AC

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

Preview Lab → · Contrast checker → · Palette generator →

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