#CF38C4#CF38C4

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

Color values

HEX#CF38C4
RGBrgb(207, 56, 196)
HSLhsl(304, 61%, 52%)
HSVhsv(304, 73%, 81%)
CMYKcmyk(0%, 72.9%, 5.3%, 18.8%)
CIE-LABlab(51.93, 72.64, -41.32)
CIE-LCHlch(51.93, 83.57, 330.37°)
OKLaboklab(61.69% 0.2073 -0.1138)
OKLCHoklch(61.69% 0.237 331.2)
XYZxyz(37.1101, 20.0822, 54.1356)
Luminance0.2008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38C4 #38CF43
analogous
#8F38CF #CF38C4 #CF3879
triadic
#CF38C4 #C4CF38 #38C4CF
tetradic
#CF38C4 #CF8F38 #38CF43 #3879CF
square
#CF38C4 #CF8F38 #38CF43 #3879CF
split-complementary
#CF38C4 #79CF38 #38CF8F
monochromatic
#711B6B #A3279A #CF38C4 #DB69D3 #E79BE1

Accessibility & contrast

On white

4.19
#CF38C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#CF38C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38C4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38C4#FFFFFF#000000##000000
##CF38C41.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A6EC8
Deuteranopia (green-blind)
#6883C0
Tritanopia (blue-blind)
#D74A7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf38c4;
/* rgb */ color: rgb(207, 56, 196);
/* oklch */ color: oklch(61.7% 0.237 331.2);
Tailwind
colors: {
  custom: {
    50: '#e27ed6',
    500: '#cf38c4',
    950: '#000000',
  },
}
SCSS
$custom: #cf38c4;
$custom-light: #e27ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38c4",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 304.371,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61685,
    "c": 0.23653,
    "h": 331.2
  },
  "luminance": 0.20079
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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