#B334CA#B334CA

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

Color values

HEX#B334CA
RGBrgb(179, 52, 202)
HSLhsl(291, 59%, 50%)
HSVhsv(291, 74%, 79%)
CMYKcmyk(11.4%, 74.3%, 0%, 20.8%)
CIE-LABlab(47.37, 69.07, -52.31)
CIE-LCHlch(47.37, 86.64, 322.86°)
OKLaboklab(57.68% 0.1807 -0.1465)
OKLCHoklch(57.68% 0.233 321)
XYZxyz(30.4778, 16.3056, 57.4076)
Luminance0.1630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334CA #4BCA34
analogous
#6834CA #B334CA #CA3496
triadic
#B334CA #CAB334 #34CAB3
tetradic
#B334CA #CA6834 #4BCA34 #3496CA
square
#B334CA #CA6834 #4BCA34 #3496CA
split-complementary
#B334CA #96CA34 #34CA68
monochromatic
#5D1B69 #882799 #B334CA #C564D7 #D895E4

Accessibility & contrast

On white

4.93
#B334CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B334CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334CA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334CA#FFFFFF#000000##FFFFFF
##B334CA1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#4675C7
Tritanopia (blue-blind)
#B4527D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b334ca;
/* rgb */ color: rgb(179, 52, 202);
/* oklch */ color: oklch(57.7% 0.233 321.0);
Tailwind
colors: {
  custom: {
    50: '#ce79db',
    500: '#b334ca',
    950: '#000000',
  },
}
SCSS
$custom: #b334ca;
$custom-light: #ce79db;
$custom-dark: #000000;
JSON
{
  "hex": "#b334ca",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 290.8,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57677,
    "c": 0.23264,
    "h": 321
  },
  "luminance": 0.16304
}

Semantic roles & 50–950 ramp

primary
#B334CA
secondary
#95CF8B
accent
#E2465E
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B334CA

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

Preview Lab → · Contrast checker → · Palette generator →

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