#B02FA4#B02FA4

#B02FA4 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.207 H 332.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B02FA4
RGBrgb(176, 47, 164)
HSLhsl(306, 58%, 44%)
HSVhsv(306, 73%, 69%)
CMYKcmyk(0%, 73.3%, 6.8%, 31%)
CIE-LABlab(44.15, 63.71, -35.16)
CIE-LCHlch(44.15, 72.77, 331.10°)
OKLaboklab(54.59% 0.1829 -0.0967)
OKLCHoklch(54.59% 0.207 332.1)
XYZxyz(25.6219, 13.9456, 36.4571)
Luminance0.1394 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02FA4 #2FB03B
analogous
#7B2FB0 #B02FA4 #B02F63
triadic
#B02FA4 #A4B02F #2FA4B0
tetradic
#B02FA4 #B07B2F #2FB03B #2F63B0
square
#B02FA4 #B07B2F #2FB03B #2F63B0
split-complementary
#B02FA4 #63B02F #2FB07B
monochromatic
#4F154A #802277 #B02FA4 #CF4DC3 #DC7DD3

Accessibility & contrast

On white

5.54
#B02FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B02FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02FA4
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02FA4#FFFFFF#000000##FFFFFF
##B02FA41.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275DA7
Deuteranopia (green-blind)
#596FA1
Tritanopia (blue-blind)
#B83D67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b02fa4;
/* rgb */ color: rgb(176, 47, 164);
/* oklch */ color: oklch(54.6% 0.207 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb75bf',
    500: '#b02fa4',
    950: '#000000',
  },
}
SCSS
$custom: #b02fa4;
$custom-light: #cb75bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b02fa4",
  "rgb": {
    "r": 176,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 305.581,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54589,
    "c": 0.20683,
    "h": 332.1
  },
  "luminance": 0.13943
}

Semantic roles & 50–950 ramp

primary
#B02FA4
secondary
#76C57D
accent
#E15547
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #B02FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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