#CF38B2#CF38B2

#CF38B2 is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.8% C 0.224 H 336.9°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#CF38B2
RGBrgb(207, 56, 178)
HSLhsl(312, 61%, 52%)
HSVhsv(312, 73%, 81%)
CMYKcmyk(0%, 72.9%, 14%, 18.8%)
CIE-LABlab(51.05, 70.00, -32.24)
CIE-LCHlch(51.05, 77.07, 335.27°)
OKLaboklab(60.77% 0.2061 -0.0877)
OKLCHoklch(60.77% 0.224 336.9)
XYZxyz(35.1828, 19.3113, 43.9854)
Luminance0.1931 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38B2 #38CF55
analogous
#A138CF #CF38B2 #CF3867
triadic
#CF38B2 #B2CF38 #38B2CF
tetradic
#CF38B2 #CFA138 #38CF55 #3867CF
square
#CF38B2 #CFA138 #38CF55 #3867CF
split-complementary
#CF38B2 #67CF38 #38CFA1
monochromatic
#711B61 #A3278B #CF38B2 #DB69C5 #E79BD8

Accessibility & contrast

On white

4.32
#CF38B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#CF38B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38B2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38B2#FFFFFF#000000##000000
##CF38B21.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB5
Deuteranopia (green-blind)
#7082AE
Tritanopia (blue-blind)
#DA4171
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cf38b2;
/* rgb */ color: rgb(207, 56, 178);
/* oklch */ color: oklch(60.8% 0.224 336.9);
Tailwind
colors: {
  custom: {
    50: '#e27dc9',
    500: '#cf38b2',
    950: '#000000',
  },
}
SCSS
$custom: #cf38b2;
$custom-light: #e27dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38b2",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 311.523,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60766,
    "c": 0.224,
    "h": 336.9
  },
  "luminance": 0.19308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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