#B334CB#B334CB

#B334CB is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.7% C 0.233 H 320.7°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B334CB
RGBrgb(179, 52, 203)
HSLhsl(290, 59%, 50%)
HSVhsv(290, 74%, 80%)
CMYKcmyk(11.8%, 74.4%, 0%, 20.4%)
CIE-LABlab(47.43, 69.25, -52.79)
CIE-LCHlch(47.43, 87.08, 322.68°)
OKLaboklab(57.74% 0.1806 -0.1479)
OKLCHoklch(57.74% 0.233 320.7)
XYZxyz(30.5966, 16.3531, 58.0332)
Luminance0.1635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334CB #4CCB34
analogous
#6834CB #B334CB #CB3497
triadic
#B334CB #CBB334 #34CBB3
tetradic
#B334CB #CB6834 #4CCB34 #3497CB
square
#B334CB #CB6834 #4CCB34 #3497CB
split-complementary
#B334CB #97CB34 #34CB68
monochromatic
#5D1B6A #88289A #B334CB #C565D7 #D795E4

Accessibility & contrast

On white

4.92
#B334CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B334CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334CB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334CB#FFFFFF#000000##FFFFFF
##B334CB1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#4575C8
Tritanopia (blue-blind)
#B4527E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b334cb;
/* rgb */ color: rgb(179, 52, 203);
/* oklch */ color: oklch(57.7% 0.233 320.7);
Tailwind
colors: {
  custom: {
    50: '#ce79db',
    500: '#b334cb',
    950: '#000000',
  },
}
SCSS
$custom: #b334cb;
$custom-light: #ce79db;
$custom-dark: #000000;
JSON
{
  "hex": "#b334cb",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 203
  },
  "hsl": {
    "h": 290.464,
    "s": 59.216,
    "l": 50
  },
  "oklch": {
    "l": 0.5774,
    "c": 0.23346,
    "h": 320.7
  },
  "luminance": 0.16351
}

Semantic roles & 50–950 ramp

primary
#B334CB
secondary
#96CF8C
accent
#E2455E
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B334CB

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

Preview Lab → · Contrast checker → · Palette generator →

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