#CF38BC#CF38BC

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

Color values

HEX#CF38BC
RGBrgb(207, 56, 188)
HSLhsl(308, 61%, 52%)
HSVhsv(308, 73%, 81%)
CMYKcmyk(0%, 72.9%, 9.2%, 18.8%)
CIE-LABlab(51.53, 71.44, -37.32)
CIE-LCHlch(51.53, 80.60, 332.42°)
OKLaboklab(61.27% 0.207 -0.1023)
OKLCHoklch(61.27% 0.231 333.7)
XYZxyz(36.2237, 19.7277, 49.4672)
Luminance0.1973 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38BC #38CF4B
analogous
#9738CF #CF38BC #CF3871
triadic
#CF38BC #BCCF38 #38BCCF
tetradic
#CF38BC #CF9738 #38CF4B #3871CF
square
#CF38BC #CF9738 #38CF4B #3871CF
split-complementary
#CF38BC #71CF38 #38CF97
monochromatic
#711B66 #A32793 #CF38BC #DB69CD #E79BDD

Accessibility & contrast

On white

4.25
#CF38BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CF38BC#FFFFFF#000000##000000
##CF38BC1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#336DC0
Deuteranopia (green-blind)
#6C83B8
Tritanopia (blue-blind)
#D94677
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf38bc;
/* rgb */ color: rgb(207, 56, 188);
/* oklch */ color: oklch(61.3% 0.231 333.7);
Tailwind
colors: {
  custom: {
    50: '#e27dd0',
    500: '#cf38bc',
    950: '#000000',
  },
}
SCSS
$custom: #cf38bc;
$custom-light: #e27dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38bc",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 307.55,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61266,
    "c": 0.23085,
    "h": 333.7
  },
  "luminance": 0.19725
}

Semantic roles & 50–950 ramp

primary
#CF38BC
secondary
#90D399
accent
#E45844
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CF38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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