#CF45A1#CF45A1

#CF45A1 is a mid, vivid pink. Relative luminance 0.201; OKLCH L 61.2% C 0.198 H 343.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#CF45A1
RGBrgb(207, 69, 161)
HSLhsl(320, 59%, 54%)
HSVhsv(320, 67%, 81%)
CMYKcmyk(0%, 66.7%, 22.2%, 18.8%)
CIE-LABlab(51.95, 63.08, -20.87)
CIE-LCHlch(51.95, 66.44, 341.69°)
OKLaboklab(61.18% 0.1896 -0.0557)
OKLCHoklch(61.18% 0.198 343.6)
XYZxyz(34.2944, 20.0982, 35.7845)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF45A1 #45CF73
analogous
#B845CF #CF45A1 #CF455C
triadic
#CF45A1 #A1CF45 #45A1CF
tetradic
#CF45A1 #CFB845 #45CF73 #455CCF
square
#CF45A1 #CFB845 #45CF73 #455CCF
split-complementary
#CF45A1 #5CCF45 #45CFB8
monochromatic
#7A205C #AB2C81 #CF45A1 #DC76BA #E8A6D2

Accessibility & contrast

On white

4.18
#CF45A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#CF45A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF45A1
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF45A1#FFFFFF#000000##000000
##CF45A11.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#526DA4
Deuteranopia (green-blind)
#7B849E
Tritanopia (blue-blind)
#DC456D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf45a1;
/* rgb */ color: rgb(207, 69, 161);
/* oklch */ color: oklch(61.2% 0.198 343.6);
Tailwind
colors: {
  custom: {
    50: '#e182bd',
    500: '#cf45a1',
    950: '#000000',
  },
}
SCSS
$custom: #cf45a1;
$custom-light: #e182bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf45a1",
  "rgb": {
    "r": 207,
    "g": 69,
    "b": 161
  },
  "hsl": {
    "h": 320,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.6118,
    "c": 0.19762,
    "h": 343.6
  },
  "luminance": 0.20095
}

Semantic roles & 50–950 ramp

primary
#CF45A1
secondary
#9BD5AE
accent
#E27A46
background
#FEF8FB
surface
#FDF0F6
border
#D5CBD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF45A1

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

Preview Lab → · Contrast checker → · Palette generator →

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