#B02DBA#B02DBA

#B02DBA is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.226 H 324.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B02DBA
RGBrgb(176, 45, 186)
HSLhsl(296, 61%, 45%)
HSVhsv(296, 76%, 73%)
CMYKcmyk(5.4%, 75.8%, 0%, 27.1%)
CIE-LABlab(45.16, 67.92, -46.58)
CIE-LCHlch(45.16, 82.35, 325.56°)
OKLaboklab(55.7% 0.1845 -0.1298)
OKLCHoklch(55.7% 0.226 324.9)
XYZxyz(27.7051, 14.6539, 47.8141)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02DBA #37BA2D
analogous
#6A2DBA #B02DBA #BA2D7D
triadic
#B02DBA #BAB02D #2DBAB0
tetradic
#B02DBA #BA6A2D #37BA2D #2D7DBA
square
#B02DBA #BA6A2D #37BA2D #2D7DBA
split-complementary
#B02DBA #7DBA2D #2DBA6A
monochromatic
#531557 #812189 #B02DBA #CB50D5 #DA81E0

Accessibility & contrast

On white

5.34
#B02DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B02DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02DBA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02DBA#FFFFFF#000000##FFFFFF
##B02DBA1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#4B70B7
Tritanopia (blue-blind)
#B44772
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b02dba;
/* rgb */ color: rgb(176, 45, 186);
/* oklch */ color: oklch(55.7% 0.226 324.9);
Tailwind
colors: {
  custom: {
    50: '#cc75cf',
    500: '#b02dba',
    950: '#000000',
  },
}
SCSS
$custom: #b02dba;
$custom-light: #cc75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b02dba",
  "rgb": {
    "r": 176,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 295.745,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.557,
    "c": 0.22562,
    "h": 324.9
  },
  "luminance": 0.14652
}

Semantic roles & 50–950 ramp

primary
#B02DBA
secondary
#7FC979
accent
#E4444F
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B02DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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