#CF38BB#CF38BB

#CF38BB is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.2% C 0.230 H 334.0°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CF38BB
RGBrgb(207, 56, 187)
HSLhsl(308, 61%, 52%)
HSVhsv(308, 73%, 81%)
CMYKcmyk(0%, 72.9%, 9.7%, 18.8%)
CIE-LABlab(51.48, 71.30, -36.82)
CIE-LCHlch(51.48, 80.24, 332.69°)
OKLaboklab(61.22% 0.2069 -0.1008)
OKLCHoklch(61.22% 0.23 334)
XYZxyz(36.1163, 19.6847, 48.9015)
Luminance0.1968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF38BB #38CF4C
analogous
#9838CF #CF38BB #CF3870
triadic
#CF38BB #BBCF38 #38BBCF
tetradic
#CF38BB #CF9838 #38CF4C #3870CF
square
#CF38BB #CF9838 #38CF4C #3870CF
split-complementary
#CF38BB #70CF38 #38CF98
monochromatic
#711B66 #A32792 #CF38BB #DB69CC #E79BDD

Accessibility & contrast

On white

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

On black

4.94
#CF38BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF38BB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF38BB#FFFFFF#000000##000000
##CF38BB1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#346DBF
Deuteranopia (green-blind)
#6C82B7
Tritanopia (blue-blind)
#D94676
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf38bb;
/* rgb */ color: rgb(207, 56, 187);
/* oklch */ color: oklch(61.2% 0.230 334.0);
Tailwind
colors: {
  custom: {
    50: '#e27dd0',
    500: '#cf38bb',
    950: '#000000',
  },
}
SCSS
$custom: #cf38bb;
$custom-light: #e27dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf38bb",
  "rgb": {
    "r": 207,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 307.947,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61215,
    "c": 0.23016,
    "h": 334
  },
  "luminance": 0.19682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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