#B334B7#B334B7

#B334B7 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.217 H 326.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B334B7
RGBrgb(179, 52, 183)
HSLhsl(298, 56%, 46%)
HSVhsv(298, 72%, 72%)
CMYKcmyk(2.2%, 71.6%, 0%, 28.2%)
CIE-LABlab(46.26, 65.78, -43.03)
CIE-LCHlch(46.26, 78.60, 326.81°)
OKLaboklab(56.52% 0.1816 -0.1194)
OKLCHoklch(56.52% 0.217 326.7)
XYZxyz(28.3651, 15.4605, 46.2807)
Luminance0.1546 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334B7 #38B734
analogous
#7134B7 #B334B7 #B73479
triadic
#B334B7 #B7B334 #34B7B3
tetradic
#B334B7 #B77134 #38B734 #3479B7
square
#B334B7 #B77134 #38B734 #3479B7
split-complementary
#B334B7 #79B734 #34B771
monochromatic
#561958 #842687 #B334B7 #CC59D0 #DB88DD

Accessibility & contrast

On white

5.13
#B334B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#B334B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334B7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334B7#FFFFFF#000000##FFFFFF
##B334B71.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1663BB
Deuteranopia (green-blind)
#5373B4
Tritanopia (blue-blind)
#B84972
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b334b7;
/* rgb */ color: rgb(179, 52, 183);
/* oklch */ color: oklch(56.5% 0.217 326.7);
Tailwind
colors: {
  custom: {
    50: '#cd78cd',
    500: '#b334b7',
    950: '#000000',
  },
}
SCSS
$custom: #b334b7;
$custom-light: #cd78cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b334b7",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 298.168,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56524,
    "c": 0.21737,
    "h": 326.7
  },
  "luminance": 0.15459
}

Semantic roles & 50–950 ramp

primary
#B334B7
secondary
#82C780
accent
#DF494D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B334B7

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

Preview Lab → · Contrast checker → · Palette generator →

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