#B334C2#B334C2

#B334C2 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.226 H 323.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B334C2
RGBrgb(179, 52, 194)
HSLhsl(294, 58%, 48%)
HSVhsv(294, 73%, 76%)
CMYKcmyk(7.7%, 73.2%, 0%, 23.9%)
CIE-LABlab(46.89, 67.66, -48.44)
CIE-LCHlch(46.89, 83.21, 324.40°)
OKLaboklab(57.18% 0.1813 -0.1352)
OKLCHoklch(57.18% 0.226 323.3)
XYZxyz(29.5551, 15.9365, 52.5478)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334C2 #43C234
analogous
#6C34C2 #B334C2 #C2348A
triadic
#B334C2 #C2B334 #34C2B3
tetradic
#B334C2 #C26C34 #43C234 #348AC2
square
#B334C2 #C26C34 #43C234 #348AC2
split-complementary
#B334C2 #8AC234 #34C26C
monochromatic
#5A1A61 #862792 #B334C2 #C85FD4 #D88FE1

Accessibility & contrast

On white

5.02
#B334C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B334C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334C2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334C2#FFFFFF#000000##FFFFFF
##B334C21.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b334c2;
/* rgb */ color: rgb(179, 52, 194);
/* oklch */ color: oklch(57.2% 0.226 323.3);
Tailwind
colors: {
  custom: {
    50: '#ce78d5',
    500: '#b334c2',
    950: '#000000',
  },
}
SCSS
$custom: #b334c2;
$custom-light: #ce78d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b334c2",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 293.662,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5718,
    "c": 0.22614,
    "h": 323.3
  },
  "luminance": 0.15935
}

Semantic roles & 50–950 ramp

primary
#B334C2
secondary
#8DCC86
accent
#E14757
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B334C2

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

Preview Lab → · Contrast checker → · Palette generator →

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