#CF38B6#CF38B6

#CF38B6 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.0% C 0.227 H 335.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#CF38B6
RGBrgb(207, 56, 182)
HSLhsl(310, 61%, 52%)
HSVhsv(310, 73%, 81%)
CMYKcmyk(0%, 72.9%, 12.1%, 18.8%)
CIE-LABlab(51.24, 70.57, -34.29)
CIE-LCHlch(51.24, 78.46, 334.09°)
OKLaboklab(60.96% 0.2065 -0.0936)
OKLCHoklch(60.96% 0.227 335.6)
XYZxyz(35.5903, 19.4743, 46.1314)
Luminance0.1947 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38B6 #38CF51
analogous
#9D38CF #CF38B6 #CF386B
triadic
#CF38B6 #B6CF38 #38B6CF
tetradic
#CF38B6 #CF9D38 #38CF51 #386BCF
square
#CF38B6 #CF9D38 #38CF51 #386BCF
split-complementary
#CF38B6 #6BCF38 #38CF9D
monochromatic
#711B63 #A3278E #CF38B6 #DB69C8 #E79BDA

Accessibility & contrast

On white

4.29
#CF38B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#CF38B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38B6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38B6#FFFFFF#000000##000000
##CF38B61.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#396CB9
Deuteranopia (green-blind)
#6E82B2
Tritanopia (blue-blind)
#D94373
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cf38b6;
/* rgb */ color: rgb(207, 56, 182);
/* oklch */ color: oklch(61.0% 0.227 335.6);
Tailwind
colors: {
  custom: {
    50: '#e27dcc',
    500: '#cf38b6',
    950: '#000000',
  },
}
SCSS
$custom: #cf38b6;
$custom-light: #e27dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38b6",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 309.934,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60963,
    "c": 0.22671,
    "h": 335.6
  },
  "luminance": 0.19471
}

Semantic roles & 50–950 ramp

primary
#CF38B6
secondary
#90D39B
accent
#E45E44
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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