#CF38B7#CF38B7

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

Color values

HEX#CF38B7
RGBrgb(207, 56, 183)
HSLhsl(310, 61%, 52%)
HSVhsv(310, 73%, 81%)
CMYKcmyk(0%, 72.9%, 11.6%, 18.8%)
CIE-LABlab(51.29, 70.71, -34.79)
CIE-LCHlch(51.29, 78.81, 333.80°)
OKLaboklab(61.01% 0.2066 -0.095)
OKLCHoklch(61.01% 0.227 335.3)
XYZxyz(35.6940, 19.5158, 46.6776)
Luminance0.1951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38B7 #38CF50
analogous
#9B38CF #CF38B7 #CF386C
triadic
#CF38B7 #B7CF38 #38B7CF
tetradic
#CF38B7 #CF9B38 #38CF50 #386CCF
square
#CF38B7 #CF9B38 #38CF50 #386CCF
split-complementary
#CF38B7 #6CCF38 #38CF9B
monochromatic
#711B64 #A3278F #CF38B7 #DB69C9 #E79BDB

Accessibility & contrast

On white

4.28
#CF38B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#CF38B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38B7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38B7#FFFFFF#000000##000000
##CF38B71.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#386CBA
Deuteranopia (green-blind)
#6E82B3
Tritanopia (blue-blind)
#D94474
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cf38b7;
/* rgb */ color: rgb(207, 56, 183);
/* oklch */ color: oklch(61.0% 0.227 335.3);
Tailwind
colors: {
  custom: {
    50: '#e27dcd',
    500: '#cf38b7',
    950: '#000000',
  },
}
SCSS
$custom: #cf38b7;
$custom-light: #e27dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38b7",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 309.536,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61013,
    "c": 0.22739,
    "h": 335.3
  },
  "luminance": 0.19513
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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