#CB38B4#CB38B4

#CB38B4 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.3% C 0.223 H 335.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#CB38B4
RGBrgb(203, 56, 180)
HSLhsl(309, 59%, 51%)
HSVhsv(309, 72%, 80%)
CMYKcmyk(0%, 72.4%, 11.3%, 20.4%)
CIE-LABlab(50.48, 69.36, -34.35)
CIE-LCHlch(50.48, 77.40, 333.65°)
OKLaboklab(60.26% 0.2024 -0.0938)
OKLCHoklch(60.26% 0.223 335.1)
XYZxyz(34.2814, 18.8232, 44.9989)
Luminance0.1882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38B4 #38CB4F
analogous
#9938CB #CB38B4 #CB386A
triadic
#CB38B4 #B4CB38 #38B4CB
tetradic
#CB38B4 #CB9938 #38CB4F #386ACB
square
#CB38B4 #CB9938 #38CB4F #386ACB
split-complementary
#CB38B4 #6ACB38 #38CB99
monochromatic
#6C1C60 #9D298B #CB38B4 #D869C6 #E499D9

Accessibility & contrast

On white

4.41
#CB38B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#CB38B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38B4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38B4#FFFFFF#000000##000000
##CB38B41.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#386AB7
Deuteranopia (green-blind)
#6C80B0
Tritanopia (blue-blind)
#D54472
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cb38b4;
/* rgb */ color: rgb(203, 56, 180);
/* oklch */ color: oklch(60.3% 0.223 335.1);
Tailwind
colors: {
  custom: {
    50: '#df7ccb',
    500: '#cb38b4',
    950: '#000000',
  },
}
SCSS
$custom: #cb38b4;
$custom-light: #df7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38b4",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 309.388,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60259,
    "c": 0.22312,
    "h": 335.1
  },
  "luminance": 0.1882
}

Semantic roles & 50–950 ramp

primary
#CB38B4
secondary
#8FD099
accent
#E25E46
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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