#CF38C5#CF38C5

#CF38C5 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.7% C 0.237 H 330.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CF38C5
RGBrgb(207, 56, 197)
HSLhsl(304, 61%, 52%)
HSVhsv(304, 73%, 81%)
CMYKcmyk(0%, 72.9%, 4.8%, 18.8%)
CIE-LABlab(51.98, 72.80, -41.82)
CIE-LCHlch(51.98, 83.95, 330.12°)
OKLaboklab(61.74% 0.2074 -0.1153)
OKLCHoklch(61.74% 0.237 330.9)
XYZxyz(37.2243, 20.1279, 54.7370)
Luminance0.2013 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38C5 #38CF42
analogous
#8E38CF #CF38C5 #CF3879
triadic
#CF38C5 #C5CF38 #38C5CF
tetradic
#CF38C5 #CF8E38 #38CF42 #3879CF
square
#CF38C5 #CF8E38 #38CF42 #3879CF
split-complementary
#CF38C5 #79CF38 #38CF8E
monochromatic
#711B6C #A3279A #CF38C5 #DB69D3 #E79BE2

Accessibility & contrast

On white

4.18
#CF38C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CF38C5#FFFFFF#000000##000000
##CF38C51.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#296FC9
Deuteranopia (green-blind)
#6783C1
Tritanopia (blue-blind)
#D74B7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf38c5;
/* rgb */ color: rgb(207, 56, 197);
/* oklch */ color: oklch(61.7% 0.237 330.9);
Tailwind
colors: {
  custom: {
    50: '#e27ed7',
    500: '#cf38c5',
    950: '#000000',
  },
}
SCSS
$custom: #cf38c5;
$custom-light: #e27ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38c5",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 303.974,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61739,
    "c": 0.23725,
    "h": 330.9
  },
  "luminance": 0.20125
}

Semantic roles & 50–950 ramp

primary
#CF38C5
secondary
#90D395
accent
#E44E44
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CF38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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