#CF38C2#CF38C2

#CF38C2 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.6% C 0.235 H 331.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#CF38C2
RGBrgb(207, 56, 194)
HSLhsl(305, 61%, 52%)
HSVhsv(305, 73%, 81%)
CMYKcmyk(0%, 72.9%, 6.3%, 18.8%)
CIE-LABlab(51.83, 72.34, -40.33)
CIE-LCHlch(51.83, 82.82, 330.86°)
OKLaboklab(61.58% 0.2073 -0.1109)
OKLCHoklch(61.58% 0.235 331.8)
XYZxyz(36.8840, 19.9918, 52.9447)
Luminance0.1999 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38C2 #38CF45
analogous
#9138CF #CF38C2 #CF3876
triadic
#CF38C2 #C2CF38 #38C2CF
tetradic
#CF38C2 #CF9138 #38CF45 #3876CF
square
#CF38C2 #CF9138 #38CF45 #3876CF
split-complementary
#CF38C2 #76CF38 #38CF91
monochromatic
#711B6A #A32798 #CF38C2 #DB69D1 #E79BE0

Accessibility & contrast

On white

4.20
#CF38C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#CF38C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38C2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38C2#FFFFFF#000000##000000
##CF38C21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D6EC6
Deuteranopia (green-blind)
#6983BE
Tritanopia (blue-blind)
#D8497A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf38c2;
/* rgb */ color: rgb(207, 56, 194);
/* oklch */ color: oklch(61.6% 0.235 331.8);
Tailwind
colors: {
  custom: {
    50: '#e27dd5',
    500: '#cf38c2',
    950: '#000000',
  },
}
SCSS
$custom: #cf38c2;
$custom-light: #e27dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38c2",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 305.166,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61579,
    "c": 0.2351,
    "h": 331.8
  },
  "luminance": 0.19989
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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