#CB38CF#CB38CF

#CB38CF is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.7% C 0.243 H 326.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CB38CF
RGBrgb(203, 56, 207)
HSLhsl(298, 61%, 52%)
HSVhsv(298, 73%, 81%)
CMYKcmyk(1.9%, 72.9%, 0%, 18.8%)
CIE-LABlab(51.87, 73.52, -47.78)
CIE-LCHlch(51.87, 87.68, 326.98°)
OKLaboklab(61.71% 0.2033 -0.1326)
OKLCHoklch(61.71% 0.243 326.9)
XYZxyz(37.3046, 20.0325, 60.9212)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38CF #3CCF38
analogous
#8038CF #CB38CF #CF3887
triadic
#CB38CF #CFCB38 #38CFCB
tetradic
#CB38CF #CF8038 #3CCF38 #3887CF
square
#CB38CF #CF8038 #3CCF38 #3887CF
split-complementary
#CB38CF #87CF38 #38CF80
monochromatic
#6F1B71 #9F27A3 #CB38CF #D869DB #E59BE7

Accessibility & contrast

On white

4.19
#CB38CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CB38CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38CF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38CF#FFFFFF#000000##000000
##CB38CF1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F70D3
Deuteranopia (green-blind)
#5E82CB
Tritanopia (blue-blind)
#D15181
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb38cf;
/* rgb */ color: rgb(203, 56, 207);
/* oklch */ color: oklch(61.7% 0.243 326.9);
Tailwind
colors: {
  custom: {
    50: '#df7dde',
    500: '#cb38cf',
    950: '#000000',
  },
}
SCSS
$custom: #cb38cf;
$custom-light: #df7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38cf",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 298.411,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61711,
    "c": 0.24274,
    "h": 326.9
  },
  "luminance": 0.2003
}

Semantic roles & 50–950 ramp

primary
#CB38CF
secondary
#92D390
accent
#E44448
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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