#B02F98#B02F98

#B02F98 is a mid, vivid pink. Relative luminance 0.135; OKLCH L 54.0% C 0.198 H 336.6°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B02F98
RGBrgb(176, 47, 152)
HSLhsl(311, 58%, 44%)
HSVhsv(311, 73%, 69%)
CMYKcmyk(0%, 73.3%, 13.6%, 31%)
CIE-LABlab(43.55, 61.89, -28.92)
CIE-LCHlch(43.55, 68.31, 334.96°)
OKLaboklab(53.96% 0.1819 -0.0787)
OKLCHoklch(53.96% 0.198 336.6)
XYZxyz(24.5889, 13.5324, 31.0167)
Luminance0.1353 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02F98 #2FB047
analogous
#872FB0 #B02F98 #B02F57
triadic
#B02F98 #98B02F #2F98B0
tetradic
#B02F98 #B0872F #2FB047 #2F57B0
square
#B02F98 #B0872F #2FB047 #2F57B0
split-complementary
#B02F98 #57B02F #2FB087
monochromatic
#4F1545 #80226E #B02F98 #CF4DB7 #DC7DCB

Accessibility & contrast

On white

5.67
#B02F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B02F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02F98
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02F98#FFFFFF#000000##FFFFFF
##B02F981.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9B
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#B93760
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b02f98;
/* rgb */ color: rgb(176, 47, 152);
/* oklch */ color: oklch(54.0% 0.198 336.6);
Tailwind
colors: {
  custom: {
    50: '#cb74b6',
    500: '#b02f98',
    950: '#000000',
  },
}
SCSS
$custom: #b02f98;
$custom-light: #cb74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b02f98",
  "rgb": {
    "r": 176,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 311.163,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53962,
    "c": 0.19823,
    "h": 336.6
  },
  "luminance": 0.1353
}

Semantic roles & 50–950 ramp

primary
#B02F98
secondary
#76C585
accent
#E16347
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #B02F98

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

Preview Lab → · Contrast checker → · Palette generator →

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