#B052B2#B052B2

#B052B2 is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.1% C 0.171 H 326.7°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B052B2
RGBrgb(176, 82, 178)
HSLhsl(299, 38%, 51%)
HSVhsv(299, 54%, 70%)
CMYKcmyk(1.1%, 53.9%, 0%, 30.2%)
CIE-LABlab(50.07, 51.64, -34.11)
CIE-LCHlch(50.07, 61.89, 326.55°)
OKLaboklab(59.12% 0.1429 -0.0939)
OKLCHoklch(59.12% 0.171 326.7)
XYZxyz(28.9571, 18.4807, 44.1527)
Luminance0.1848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B052B2 #54B252
analogous
#8052B2 #B052B2 #B25284
triadic
#B052B2 #B2B052 #52B2B0
tetradic
#B052B2 #B28052 #54B252 #5284B2
square
#B052B2 #B28052 #54B252 #5284B2
split-complementary
#B052B2 #84B252 #52B280
monochromatic
#5E2A5F #883D8A #B052B2 #C37CC5 #D7A7D8

Accessibility & contrast

On white

4.47
#B052B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#B052B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B052B2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B052B2#FFFFFF#000000##000000
##B052B21.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#476FB5
Deuteranopia (green-blind)
#657BAF
Tritanopia (blue-blind)
#B45D7A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b052b2;
/* rgb */ color: rgb(176, 82, 178);
/* oklch */ color: oklch(59.1% 0.171 326.7);
Tailwind
colors: {
  custom: {
    50: '#ca87c9',
    500: '#b052b2',
    950: '#000000',
  },
}
SCSS
$custom: #b052b2;
$custom-light: #ca87c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b052b2",
  "rgb": {
    "r": 176,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 298.75,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59119,
    "c": 0.17096,
    "h": 326.7
  },
  "luminance": 0.18479
}

Semantic roles & 50–950 ramp

primary
#B052B2
secondary
#9CC59B
accent
#CE595C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B052B2

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

Preview Lab → · Contrast checker → · Palette generator →

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