#CF38C8#CF38C8

#CF38C8 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.9% C 0.239 H 330.0°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CF38C8
RGBrgb(207, 56, 200)
HSLhsl(303, 61%, 52%)
HSVhsv(303, 73%, 81%)
CMYKcmyk(0%, 72.9%, 3.4%, 18.8%)
CIE-LABlab(52.14, 73.26, -43.30)
CIE-LCHlch(52.14, 85.10, 329.41°)
OKLaboklab(61.9% 0.2074 -0.1195)
OKLCHoklch(61.9% 0.239 330)
XYZxyz(37.5714, 20.2668, 56.5654)
Luminance0.2026 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38C8 #38CF3F
analogous
#8A38CF #CF38C8 #CF387D
triadic
#CF38C8 #C8CF38 #38C8CF
tetradic
#CF38C8 #CF8A38 #38CF3F #387DCF
square
#CF38C8 #CF8A38 #38CF3F #387DCF
split-complementary
#CF38C8 #7DCF38 #38CF8A
monochromatic
#711B6D #A3279D #CF38C8 #DB69D6 #E79BE3

Accessibility & contrast

On white

4.16
#CF38C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CF38C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38C8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38C8#FFFFFF#000000##000000
##CF38C81.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#256FCC
Deuteranopia (green-blind)
#6683C4
Tritanopia (blue-blind)
#D74C7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf38c8;
/* rgb */ color: rgb(207, 56, 200);
/* oklch */ color: oklch(61.9% 0.239 330.0);
Tailwind
colors: {
  custom: {
    50: '#e27ed9',
    500: '#cf38c8',
    950: '#000000',
  },
}
SCSS
$custom: #cf38c8;
$custom-light: #e27ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38c8",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 302.781,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61901,
    "c": 0.23942,
    "h": 330
  },
  "luminance": 0.20264
}

Semantic roles & 50–950 ramp

primary
#CF38C8
secondary
#90D393
accent
#E44B44
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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