#C02F8E#C02F8E

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

Color values

HEX#C02F8E
RGBrgb(192, 47, 142)
HSLhsl(321, 61%, 47%)
HSVhsv(321, 76%, 75%)
CMYKcmyk(0%, 75.5%, 26%, 24.7%)
CIE-LABlab(45.90, 64.44, -19.02)
CIE-LCHlch(45.90, 67.19, 343.55°)
OKLaboklab(56.04% 0.1955 -0.0505)
OKLCHoklch(56.04% 0.202 345.5)
XYZxyz(27.6384, 15.1955, 27.0635)
Luminance0.1519 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02F8E #2FC061
analogous
#AA2FC0 #C02F8E #C02F45
triadic
#C02F8E #8EC02F #2F8EC0
tetradic
#C02F8E #C0AA2F #2FC061 #2F45C0
square
#C02F8E #C0AA2F #2FC061 #2F45C0
split-complementary
#C02F8E #45C02F #2FC0AA
monochromatic
#5E1745 #8F236A #C02F8E #D656AA #E288C3

Accessibility & contrast

On white

5.20
#C02F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#C02F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02F8E
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02F8E#FFFFFF#000000##FFFFFF
##C02F8E1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425D91
Deuteranopia (green-blind)
#6E768B
Tritanopia (blue-blind)
#CD2C5B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c02f8e;
/* rgb */ color: rgb(192, 47, 142);
/* oklch */ color: oklch(56.0% 0.202 345.5);
Tailwind
colors: {
  custom: {
    50: '#d776af',
    500: '#c02f8e',
    950: '#000000',
  },
}
SCSS
$custom: #c02f8e;
$custom-light: #d776af;
$custom-dark: #000000;
JSON
{
  "hex": "#c02f8e",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 320.69,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5604,
    "c": 0.2019,
    "h": 345.5
  },
  "luminance": 0.15192
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C02F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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