#B334AA#B334AA

#B334AA is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.207 H 331.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B334AA
RGBrgb(179, 52, 170)
HSLhsl(304, 55%, 45%)
HSVhsv(304, 71%, 70%)
CMYKcmyk(0%, 70.9%, 5%, 29.8%)
CIE-LABlab(45.56, 63.65, -36.48)
CIE-LCHlch(45.56, 73.36, 330.18°)
OKLaboklab(55.79% 0.1814 -0.1004)
OKLCHoklch(55.79% 0.207 331)
XYZxyz(27.0740, 14.9441, 39.4810)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B334AA #34B33D
analogous
#7C34B3 #B334AA #B3346A
triadic
#B334AA #AAB334 #34AAB3
tetradic
#B334AA #B37C34 #34B33D #346AB3
square
#B334AA #B37C34 #34B33D #346AB3
split-complementary
#B334AA #6AB334 #34B37C
monochromatic
#541850 #84267D #B334AA #CE56C5 #DC86D6

Accessibility & contrast

On white

5.27
#B334AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B334AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B334AA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B334AA#FFFFFF#000000##FFFFFF
##B334AA1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AD
Deuteranopia (green-blind)
#5B72A7
Tritanopia (blue-blind)
#BA436B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b334aa;
/* rgb */ color: rgb(179, 52, 170);
/* oklch */ color: oklch(55.8% 0.207 331.0);
Tailwind
colors: {
  custom: {
    50: '#cd77c4',
    500: '#b334aa',
    950: '#000000',
  },
}
SCSS
$custom: #b334aa;
$custom-light: #cd77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b334aa",
  "rgb": {
    "r": 179,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 304.252,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55794,
    "c": 0.20733,
    "h": 331
  },
  "luminance": 0.14942
}

Semantic roles & 50–950 ramp

primary
#B334AA
secondary
#7DC582
accent
#DE5449
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B334AA

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

Preview Lab → · Contrast checker → · Palette generator →

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