#C02F8D#C02F8D

#C02F8D is a mid, highly saturated pink. Relative luminance 0.152; OKLCH L 56.0% C 0.201 H 345.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#C02F8D
RGBrgb(192, 47, 141)
HSLhsl(321, 61%, 47%)
HSVhsv(321, 76%, 75%)
CMYKcmyk(0%, 75.5%, 26.6%, 24.7%)
CIE-LABlab(45.86, 64.32, -18.48)
CIE-LCHlch(45.86, 66.92, 343.97°)
OKLaboklab(56% 0.1953 -0.049)
OKLCHoklch(56% 0.201 345.9)
XYZxyz(27.5637, 15.1656, 26.6698)
Luminance0.1516 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02F8D #2FC062
analogous
#AA2FC0 #C02F8D #C02F45
triadic
#C02F8D #8DC02F #2F8DC0
tetradic
#C02F8D #C0AA2F #2FC062 #2F45C0
square
#C02F8D #C0AA2F #2FC062 #2F45C0
split-complementary
#C02F8D #45C02F #2FC0AA
monochromatic
#5E1745 #8F2369 #C02F8D #D656A9 #E288C2

Accessibility & contrast

On white

5.21
#C02F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#C02F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02F8D
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02F8D#FFFFFF#000000##FFFFFF
##C02F8D1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435D90
Deuteranopia (green-blind)
#6E758A
Tritanopia (blue-blind)
#CD2B5A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c02f8d;
/* rgb */ color: rgb(192, 47, 141);
/* oklch */ color: oklch(56.0% 0.201 345.9);
Tailwind
colors: {
  custom: {
    50: '#d776ae',
    500: '#c02f8d',
    950: '#000000',
  },
}
SCSS
$custom: #c02f8d;
$custom-light: #d776ae;
$custom-dark: #000000;
JSON
{
  "hex": "#c02f8d",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 321.103,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55997,
    "c": 0.20133,
    "h": 345.9
  },
  "luminance": 0.15163
}

Semantic roles & 50–950 ramp

primary
#C02F8D
secondary
#7FCB9A
accent
#E47C44
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #C02F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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