#C02F8B#C02F8B

#C02F8B is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 55.9% C 0.200 H 346.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#C02F8B
RGBrgb(192, 47, 139)
HSLhsl(322, 61%, 47%)
HSVhsv(322, 76%, 75%)
CMYKcmyk(0%, 75.5%, 27.6%, 24.7%)
CIE-LABlab(45.78, 64.07, -17.39)
CIE-LCHlch(45.78, 66.39, 344.81°)
OKLaboklab(55.91% 0.1949 -0.046)
OKLCHoklch(55.91% 0.2 346.7)
XYZxyz(27.4162, 15.1066, 25.8932)
Luminance0.1510 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02F8B #2FC064
analogous
#AD2FC0 #C02F8B #C02F43
triadic
#C02F8B #8BC02F #2F8BC0
tetradic
#C02F8B #C0AD2F #2FC064 #2F43C0
square
#C02F8B #C0AD2F #2FC064 #2F43C0
split-complementary
#C02F8B #43C02F #2FC0AD
monochromatic
#5E1744 #8F2367 #C02F8B #D656A7 #E288C1

Accessibility & contrast

On white

5.22
#C02F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#C02F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02F8B
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02F8B#FFFFFF#000000##FFFFFF
##C02F8B1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445D8D
Deuteranopia (green-blind)
#6F7588
Tritanopia (blue-blind)
#CD2A59
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c02f8b;
/* rgb */ color: rgb(192, 47, 139);
/* oklch */ color: oklch(55.9% 0.200 346.7);
Tailwind
colors: {
  custom: {
    50: '#d776ad',
    500: '#c02f8b',
    950: '#000000',
  },
}
SCSS
$custom: #c02f8b;
$custom-light: #d776ad;
$custom-dark: #000000;
JSON
{
  "hex": "#c02f8b",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 321.931,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55913,
    "c": 0.20022,
    "h": 346.7
  },
  "luminance": 0.15104
}

Semantic roles & 50–950 ramp

primary
#C02F8B
secondary
#7FCB9B
accent
#E47E44
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #C02F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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