#CF38C6#CF38C6

#CF38C6 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.8% C 0.238 H 330.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CF38C6
RGBrgb(207, 56, 198)
HSLhsl(304, 61%, 52%)
HSVhsv(304, 73%, 81%)
CMYKcmyk(0%, 72.9%, 4.3%, 18.8%)
CIE-LABlab(52.03, 72.95, -42.31)
CIE-LCHlch(52.03, 84.33, 329.88°)
OKLaboklab(61.79% 0.2074 -0.1167)
OKLCHoklch(61.79% 0.238 330.6)
XYZxyz(37.3392, 20.1739, 55.3425)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38C6 #38CF41
analogous
#8D38CF #CF38C6 #CF387B
triadic
#CF38C6 #C6CF38 #38C6CF
tetradic
#CF38C6 #CF8D38 #38CF41 #387BCF
square
#CF38C6 #CF8D38 #38CF41 #387BCF
split-complementary
#CF38C6 #7BCF38 #38CF8D
monochromatic
#711B6C #A3279B #CF38C6 #DB69D4 #E79BE2

Accessibility & contrast

On white

4.17
#CF38C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CF38C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38C6
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38C6#FFFFFF#000000##000000
##CF38C61.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#286FCA
Deuteranopia (green-blind)
#6783C2
Tritanopia (blue-blind)
#D74B7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf38c6;
/* rgb */ color: rgb(207, 56, 198);
/* oklch */ color: oklch(61.8% 0.238 330.6);
Tailwind
colors: {
  custom: {
    50: '#e27ed8',
    500: '#cf38c6',
    950: '#000000',
  },
}
SCSS
$custom: #cf38c6;
$custom-light: #e27ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38c6",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 303.576,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61793,
    "c": 0.23797,
    "h": 330.6
  },
  "luminance": 0.20171
}

Semantic roles & 50–950 ramp

primary
#CF38C6
secondary
#90D394
accent
#E44D44
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CF38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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