#CF38BD#CF38BD

#CF38BD is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.3% C 0.232 H 333.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#CF38BD
RGBrgb(207, 56, 189)
HSLhsl(307, 61%, 52%)
HSVhsv(307, 73%, 81%)
CMYKcmyk(0%, 72.9%, 8.7%, 18.8%)
CIE-LABlab(51.58, 71.59, -37.83)
CIE-LCHlch(51.58, 80.97, 332.15°)
OKLaboklab(61.32% 0.207 -0.1037)
OKLCHoklch(61.32% 0.232 333.4)
XYZxyz(36.3319, 19.7710, 50.0369)
Luminance0.1977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38BD #38CF4A
analogous
#9638CF #CF38BD #CF3872
triadic
#CF38BD #BDCF38 #38BDCF
tetradic
#CF38BD #CF9638 #38CF4A #3872CF
square
#CF38BD #CF9638 #38CF4A #3872CF
split-complementary
#CF38BD #72CF38 #38CF96
monochromatic
#711B67 #A32794 #CF38BD #DB69CD #E79BDE

Accessibility & contrast

On white

4.24
#CF38BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#CF38BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38BD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38BD#FFFFFF#000000##000000
##CF38BD1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#326DC1
Deuteranopia (green-blind)
#6B83B9
Tritanopia (blue-blind)
#D84777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf38bd;
/* rgb */ color: rgb(207, 56, 189);
/* oklch */ color: oklch(61.3% 0.232 333.4);
Tailwind
colors: {
  custom: {
    50: '#e27dd1',
    500: '#cf38bd',
    950: '#000000',
  },
}
SCSS
$custom: #cf38bd;
$custom-light: #e27dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38bd",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 307.152,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61318,
    "c": 0.23155,
    "h": 333.4
  },
  "luminance": 0.19768
}

Semantic roles & 50–950 ramp

primary
#CF38BD
secondary
#90D398
accent
#E45744
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CF38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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