#CF38C1#CF38C1

#CF38C1 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.5% C 0.234 H 332.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#CF38C1
RGBrgb(207, 56, 193)
HSLhsl(306, 61%, 52%)
HSVhsv(306, 73%, 81%)
CMYKcmyk(0%, 72.9%, 6.8%, 18.8%)
CIE-LABlab(51.78, 72.19, -39.83)
CIE-LCHlch(51.78, 82.45, 331.11°)
OKLaboklab(61.53% 0.2072 -0.1095)
OKLCHoklch(61.53% 0.234 332.1)
XYZxyz(36.7720, 19.9470, 52.3552)
Luminance0.1994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38C1 #38CF46
analogous
#9238CF #CF38C1 #CF3876
triadic
#CF38C1 #C1CF38 #38C1CF
tetradic
#CF38C1 #CF9238 #38CF46 #3876CF
square
#CF38C1 #CF9238 #38CF46 #3876CF
split-complementary
#CF38C1 #76CF38 #38CF92
monochromatic
#711B69 #A32797 #CF38C1 #DB69D0 #E79BE0

Accessibility & contrast

On white

4.21
#CF38C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#CF38C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38C1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38C1#FFFFFF#000000##000000
##CF38C11.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E6EC5
Deuteranopia (green-blind)
#6983BD
Tritanopia (blue-blind)
#D84979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf38c1;
/* rgb */ color: rgb(207, 56, 193);
/* oklch */ color: oklch(61.5% 0.234 332.1);
Tailwind
colors: {
  custom: {
    50: '#e27dd4',
    500: '#cf38c1',
    950: '#000000',
  },
}
SCSS
$custom: #cf38c1;
$custom-light: #e27dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38c1",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 305.563,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61526,
    "c": 0.23438,
    "h": 332.1
  },
  "luminance": 0.19944
}

Semantic roles & 50–950 ramp

primary
#CF38C1
secondary
#90D396
accent
#E45244
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CF38C1

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

Preview Lab → · Contrast checker → · Palette generator →

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