#C02F8A#C02F8A

#C02F8A is a mid, vivid pink. Relative luminance 0.151; OKLCH L 55.9% C 0.200 H 347.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#C02F8A
RGBrgb(192, 47, 138)
HSLhsl(322, 61%, 47%)
HSVhsv(322, 76%, 75%)
CMYKcmyk(0%, 75.5%, 28.1%, 24.7%)
CIE-LABlab(45.74, 63.95, -16.85)
CIE-LCHlch(45.74, 66.13, 345.24°)
OKLaboklab(55.87% 0.1947 -0.0445)
OKLCHoklch(55.87% 0.2 347.1)
XYZxyz(27.3435, 15.0775, 25.5101)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02F8A #2FC065
analogous
#AE2FC0 #C02F8A #C02F42
triadic
#C02F8A #8AC02F #2F8AC0
tetradic
#C02F8A #C0AE2F #2FC065 #2F42C0
square
#C02F8A #C0AE2F #2FC065 #2F42C0
split-complementary
#C02F8A #42C02F #2FC0AE
monochromatic
#5E1743 #8F2367 #C02F8A #D656A6 #E288C0

Accessibility & contrast

On white

5.23
#C02F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#C02F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02F8A
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02F8A#FFFFFF#000000##FFFFFF
##C02F8A1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445C8C
Deuteranopia (green-blind)
#6F7587
Tritanopia (blue-blind)
#CE2959
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c02f8a;
/* rgb */ color: rgb(192, 47, 138);
/* oklch */ color: oklch(55.9% 0.200 347.1);
Tailwind
colors: {
  custom: {
    50: '#d876ac',
    500: '#c02f8a',
    950: '#000000',
  },
}
SCSS
$custom: #c02f8a;
$custom-light: #d876ac;
$custom-dark: #000000;
JSON
{
  "hex": "#c02f8a",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 322.345,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55871,
    "c": 0.19967,
    "h": 347.1
  },
  "luminance": 0.15074
}

Semantic roles & 50–950 ramp

primary
#C02F8A
secondary
#7FCB9C
accent
#E48044
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #C02F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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