#CF5198#CF5198

#CF5198 is a light, vivid pink. Relative luminance 0.214; OKLCH L 62.1% C 0.176 H 348.5°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#CF5198
RGBrgb(207, 81, 152)
HSLhsl(326, 57%, 56%)
HSVhsv(326, 61%, 81%)
CMYKcmyk(0%, 60.9%, 26.6%, 18.8%)
CIE-LABlab(53.41, 56.96, -13.34)
CIE-LCHlch(53.41, 58.50, 346.82°)
OKLaboklab(62.14% 0.1724 -0.035)
OKLCHoklch(62.14% 0.176 348.5)
XYZxyz(34.3434, 21.4206, 32.0256)
Luminance0.2142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF5198 #51CF88
analogous
#C751CF #CF5198 #CF5159
triadic
#CF5198 #98CF51 #5198CF
tetradic
#CF5198 #CFC751 #51CF88 #5159CF
square
#CF5198 #CFC751 #51CF88 #5159CF
split-complementary
#CF5198 #59CF51 #51CFC7
monochromatic
#822459 #B2317A #CF5198 #DC81B4 #E9B1D1

Accessibility & contrast

On white

3.97
#CF5198 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#CF5198 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF5198
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF5198#FFFFFF#000000##000000
##CF51981.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#60729A
Deuteranopia (green-blind)
#838895
Tritanopia (blue-blind)
#DD4D6E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cf5198;
/* rgb */ color: rgb(207, 81, 152);
/* oklch */ color: oklch(62.1% 0.176 348.5);
Tailwind
colors: {
  custom: {
    50: '#e188b6',
    500: '#cf5198',
    950: '#000000',
  },
}
SCSS
$custom: #cf5198;
$custom-light: #e188b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf5198",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 152
  },
  "hsl": {
    "h": 326.19,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.62142,
    "c": 0.17589,
    "h": 348.5
  },
  "luminance": 0.21417
}

Semantic roles & 50–950 ramp

primary
#CF5198
secondary
#A4D8BB
accent
#E08A48
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C11
muted
#847D80

Preview Lab

Preview with #CF5198

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

Preview Lab → · Contrast checker → · Palette generator →

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