#CF38C9#CF38C9

#CF38C9 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 62.0% C 0.240 H 329.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CF38C9
RGBrgb(207, 56, 201)
HSLhsl(302, 61%, 52%)
HSVhsv(302, 73%, 81%)
CMYKcmyk(0%, 72.9%, 2.9%, 18.8%)
CIE-LABlab(52.19, 73.41, -43.79)
CIE-LCHlch(52.19, 85.48, 329.18°)
OKLaboklab(61.96% 0.2075 -0.121)
OKLCHoklch(61.96% 0.24 329.8)
XYZxyz(37.6887, 20.3137, 57.1829)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38C9 #38CF3E
analogous
#8A38CF #CF38C9 #CF387E
triadic
#CF38C9 #C9CF38 #38C9CF
tetradic
#CF38C9 #CF8A38 #38CF3E #387ECF
square
#CF38C9 #CF8A38 #38CF3E #387ECF
split-complementary
#CF38C9 #7ECF38 #38CF8A
monochromatic
#711B6E #A3279E #CF38C9 #DB69D6 #E79BE4

Accessibility & contrast

On white

4.15
#CF38C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CF38C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38C9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38C9#FFFFFF#000000##000000
##CF38C91.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#236FCD
Deuteranopia (green-blind)
#6584C5
Tritanopia (blue-blind)
#D64D7E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf38c9;
/* rgb */ color: rgb(207, 56, 201);
/* oklch */ color: oklch(62.0% 0.240 329.8);
Tailwind
colors: {
  custom: {
    50: '#e27eda',
    500: '#cf38c9',
    950: '#000000',
  },
}
SCSS
$custom: #cf38c9;
$custom-light: #e27eda;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38c9",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 302.384,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61956,
    "c": 0.24014,
    "h": 329.8
  },
  "luminance": 0.20311
}

Semantic roles & 50–950 ramp

primary
#CF38C9
secondary
#90D393
accent
#E44A44
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF38C9

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

Preview Lab → · Contrast checker → · Palette generator →

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