#B02FA1#B02FA1

#B02FA1 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.205 H 333.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#B02FA1
RGBrgb(176, 47, 161)
HSLhsl(307, 58%, 44%)
HSVhsv(307, 73%, 69%)
CMYKcmyk(0%, 73.3%, 8.5%, 31%)
CIE-LABlab(44.00, 63.24, -33.62)
CIE-LCHlch(44.00, 71.62, 332.01°)
OKLaboklab(54.43% 0.1827 -0.0922)
OKLCHoklch(54.43% 0.205 333.2)
XYZxyz(25.3542, 13.8385, 35.0471)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02FA1 #2FB03E
analogous
#7E2FB0 #B02FA1 #B02F60
triadic
#B02FA1 #A1B02F #2FA1B0
tetradic
#B02FA1 #B07E2F #2FB03E #2F60B0
square
#B02FA1 #B07E2F #2FB03E #2F60B0
split-complementary
#B02FA1 #60B02F #2FB07E
monochromatic
#4F1549 #802275 #B02FA1 #CF4DC0 #DC7DD1

Accessibility & contrast

On white

5.57
#B02FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B02FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02FA1
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02FA1#FFFFFF#000000##FFFFFF
##B02FA11.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5CA4
Deuteranopia (green-blind)
#5A6F9E
Tritanopia (blue-blind)
#B83C65
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b02fa1;
/* rgb */ color: rgb(176, 47, 161);
/* oklch */ color: oklch(54.4% 0.205 333.2);
Tailwind
colors: {
  custom: {
    50: '#cb75bd',
    500: '#b02fa1',
    950: '#000000',
  },
}
SCSS
$custom: #b02fa1;
$custom-light: #cb75bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b02fa1",
  "rgb": {
    "r": 176,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 306.977,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54428,
    "c": 0.20463,
    "h": 333.2
  },
  "luminance": 0.13836
}

Semantic roles & 50–950 ramp

primary
#B02FA1
secondary
#76C57F
accent
#E15947
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #B02FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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