#B02781#B02781

#B02781 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.2% C 0.192 H 345.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#B02781
RGBrgb(176, 39, 129)
HSLhsl(321, 64%, 42%)
HSVhsv(321, 78%, 69%)
CMYKcmyk(0%, 77.8%, 26.7%, 31%)
CIE-LABlab(41.64, 61.28, -17.88)
CIE-LCHlch(41.64, 63.84, 343.74°)
OKLaboklab(52.24% 0.1861 -0.0475)
OKLCHoklch(52.24% 0.192 345.7)
XYZxyz(22.5935, 12.2686, 21.9429)
Luminance0.1227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02781 #27B056
analogous
#9B27B0 #B02781 #B0273D
triadic
#B02781 #81B027 #2781B0
tetradic
#B02781 #B09B27 #27B056 #273DB0
square
#B02781 #B09B27 #27B056 #273DB0
split-complementary
#B02781 #3DB027 #27B09B
monochromatic
#4C1138 #7E1C5C #B02781 #D540A1 #E072BA

Accessibility & contrast

On white

6.08
#B02781 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#B02781 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02781
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02781#FFFFFF#000000##FFFFFF
##B027811.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5383
Deuteranopia (green-blind)
#646B7E
Tritanopia (blue-blind)
#BC2451
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b02781;
/* rgb */ color: rgb(176, 39, 129);
/* oklch */ color: oklch(52.2% 0.192 345.7);
Tailwind
colors: {
  custom: {
    50: '#cc70a5',
    500: '#b02781',
    950: '#000000',
  },
}
SCSS
$custom: #b02781;
$custom-light: #cc70a5;
$custom-dark: #000000;
JSON
{
  "hex": "#b02781",
  "rgb": {
    "r": 176,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 320.584,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5224,
    "c": 0.19208,
    "h": 345.7
  },
  "luminance": 0.12266
}

Semantic roles & 50–950 ramp

primary
#B02781
secondary
#6CC78B
accent
#E77A41
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #B02781

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

Preview Lab → · Contrast checker → · Palette generator →

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