#CF38B8#CF38B8

#CF38B8 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.1% C 0.228 H 335.0°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CF38B8
RGBrgb(207, 56, 184)
HSLhsl(309, 61%, 52%)
HSVhsv(309, 73%, 81%)
CMYKcmyk(0%, 72.9%, 11.1%, 18.8%)
CIE-LABlab(51.33, 70.86, -35.30)
CIE-LCHlch(51.33, 79.16, 333.52°)
OKLaboklab(61.06% 0.2067 -0.0965)
OKLCHoklch(61.06% 0.228 335)
XYZxyz(35.7985, 19.5576, 47.2277)
Luminance0.1955 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38B8 #38CF4F
analogous
#9B38CF #CF38B8 #CF386D
triadic
#CF38B8 #B8CF38 #38B8CF
tetradic
#CF38B8 #CF9B38 #38CF4F #386DCF
square
#CF38B8 #CF9B38 #38CF4F #386DCF
split-complementary
#CF38B8 #6DCF38 #38CF9B
monochromatic
#711B64 #A32790 #CF38B8 #DB69CA #E79BDB

Accessibility & contrast

On white

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

On black

4.91
#CF38B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38B8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38B8#FFFFFF#000000##000000
##CF38B81.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#376CBC
Deuteranopia (green-blind)
#6D82B4
Tritanopia (blue-blind)
#D94474
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cf38b8;
/* rgb */ color: rgb(207, 56, 184);
/* oklch */ color: oklch(61.1% 0.228 335.0);
Tailwind
colors: {
  custom: {
    50: '#e27dcd',
    500: '#cf38b8',
    950: '#000000',
  },
}
SCSS
$custom: #cf38b8;
$custom-light: #e27dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38b8",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 309.139,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61063,
    "c": 0.22807,
    "h": 335
  },
  "luminance": 0.19554
}

Semantic roles & 50–950 ramp

primary
#CF38B8
secondary
#90D39A
accent
#E45C44
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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