#CF38C7#CF38C7

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

Color values

HEX#CF38C7
RGBrgb(207, 56, 199)
HSLhsl(303, 61%, 52%)
HSVhsv(303, 73%, 81%)
CMYKcmyk(0%, 72.9%, 3.9%, 18.8%)
CIE-LABlab(52.09, 73.10, -42.81)
CIE-LCHlch(52.09, 84.71, 329.65°)
OKLaboklab(61.85% 0.2074 -0.1181)
OKLCHoklch(61.85% 0.239 330.3)
XYZxyz(37.4550, 20.2202, 55.9519)
Luminance0.2022 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38C7 #38CF40
analogous
#8C38CF #CF38C7 #CF387C
triadic
#CF38C7 #C7CF38 #38C7CF
tetradic
#CF38C7 #CF8C38 #38CF40 #387CCF
square
#CF38C7 #CF8C38 #38CF40 #387CCF
split-complementary
#CF38C7 #7CCF38 #38CF8C
monochromatic
#711B6D #A3279C #CF38C7 #DB69D5 #E79BE3

Accessibility & contrast

On white

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

On black

5.04
#CF38C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38C7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38C7#FFFFFF#000000##000000
##CF38C71.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#266FCB
Deuteranopia (green-blind)
#6683C3
Tritanopia (blue-blind)
#D74C7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf38c7;
/* rgb */ color: rgb(207, 56, 199);
/* oklch */ color: oklch(61.8% 0.239 330.3);
Tailwind
colors: {
  custom: {
    50: '#e27ed8',
    500: '#cf38c7',
    950: '#000000',
  },
}
SCSS
$custom: #cf38c7;
$custom-light: #e27ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38c7",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 303.179,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61847,
    "c": 0.2387,
    "h": 330.3
  },
  "luminance": 0.20217
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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