#CF38B1#CF38B1

#CF38B1 is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.7% C 0.223 H 337.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#CF38B1
RGBrgb(207, 56, 177)
HSLhsl(312, 61%, 52%)
HSVhsv(312, 73%, 81%)
CMYKcmyk(0%, 72.9%, 14.5%, 18.8%)
CIE-LABlab(51.00, 69.86, -31.73)
CIE-LCHlch(51.00, 76.73, 335.57°)
OKLaboklab(60.72% 0.206 -0.0863)
OKLCHoklch(60.72% 0.223 337.3)
XYZxyz(35.0828, 19.2713, 43.4585)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38B1 #38CF56
analogous
#A238CF #CF38B1 #CF3865
triadic
#CF38B1 #B1CF38 #38B1CF
tetradic
#CF38B1 #CFA238 #38CF56 #3865CF
square
#CF38B1 #CFA238 #38CF56 #3865CF
split-complementary
#CF38B1 #65CF38 #38CFA2
monochromatic
#711B60 #A3278A #CF38B1 #DB69C4 #E79BD8

Accessibility & contrast

On white

4.33
#CF38B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#CF38B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38B1
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38B1#FFFFFF#000000##000000
##CF38B11.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6BB4
Deuteranopia (green-blind)
#7082AD
Tritanopia (blue-blind)
#DA4171
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cf38b1;
/* rgb */ color: rgb(207, 56, 177);
/* oklch */ color: oklch(60.7% 0.223 337.3);
Tailwind
colors: {
  custom: {
    50: '#e27dc8',
    500: '#cf38b1',
    950: '#000000',
  },
}
SCSS
$custom: #cf38b1;
$custom-light: #e27dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38b1",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 311.921,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60717,
    "c": 0.22334,
    "h": 337.3
  },
  "luminance": 0.19268
}

Semantic roles & 50–950 ramp

primary
#CF38B1
secondary
#90D39D
accent
#E46344
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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