#B02498#B02498

#B02498 is a mid, highly saturated pink. Relative luminance 0.128; OKLCH L 53.1% C 0.209 H 336.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#B02498
RGBrgb(176, 36, 152)
HSLhsl(310, 66%, 42%)
HSVhsv(310, 80%, 69%)
CMYKcmyk(0%, 79.5%, 13.6%, 31%)
CIE-LABlab(42.40, 65.19, -30.72)
CIE-LCHlch(42.40, 72.07, 334.77°)
OKLaboklab(53.13% 0.1918 -0.0838)
OKLCHoklch(53.13% 0.209 336.4)
XYZxyz(24.2033, 12.7612, 30.8881)
Luminance0.1276 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02498 #24B03C
analogous
#8224B0 #B02498 #B02452
triadic
#B02498 #98B024 #2498B0
tetradic
#B02498 #B08224 #24B03C #2452B0
square
#B02498 #B08224 #24B03C #2452B0
split-complementary
#B02498 #52B024 #24B082
monochromatic
#4A0F40 #7D1A6C #B02498 #D73ABC #E16DCD

Accessibility & contrast

On white

5.91
#B02498 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B02498 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02498
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02498#FFFFFF#000000##FFFFFF
##B024981.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#B92F5D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b02498;
/* rgb */ color: rgb(176, 36, 152);
/* oklch */ color: oklch(53.1% 0.209 336.4);
Tailwind
colors: {
  custom: {
    50: '#cc70b6',
    500: '#b02498',
    950: '#000000',
  },
}
SCSS
$custom: #b02498;
$custom-light: #cc70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b02498",
  "rgb": {
    "r": 176,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 310.286,
    "s": 66.038,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53132,
    "c": 0.20929,
    "h": 336.4
  },
  "luminance": 0.12759
}

Semantic roles & 50–950 ramp

primary
#B02498
secondary
#68C879
accent
#E95C3F
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B02498

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

Preview Lab → · Contrast checker → · Palette generator →

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