#CB42BE#CB42BE

#CB42BE is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.219 H 331.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CB42BE
RGBrgb(203, 66, 190)
HSLhsl(306, 57%, 53%)
HSVhsv(306, 67%, 80%)
CMYKcmyk(0%, 67.5%, 6.4%, 20.4%)
CIE-LABlab(52.19, 67.41, -37.49)
CIE-LCHlch(52.19, 77.13, 330.92°)
OKLaboklab(61.65% 0.1931 -0.1029)
OKLCHoklch(61.65% 0.219 331.9)
XYZxyz(35.8711, 20.3135, 50.7368)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42BE #42CB4F
analogous
#9342CB #CB42BE #CB427A
triadic
#CB42BE #BECB42 #42BECB
tetradic
#CB42BE #CB9342 #42CB4F #427ACB
square
#CB42BE #CB9342 #42CB4F #427ACB
split-complementary
#CB42BE #7ACB42 #42CB93
monochromatic
#73206B #A32D98 #CB42BE #D872CF #E5A2DF

Accessibility & contrast

On white

4.15
#CB42BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CB42BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42BE
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42BE#FFFFFF#000000##000000
##CB42BE1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A70C2
Deuteranopia (green-blind)
#6C83BB
Tritanopia (blue-blind)
#D3507B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb42be;
/* rgb */ color: rgb(203, 66, 190);
/* oklch */ color: oklch(61.7% 0.219 331.9);
Tailwind
colors: {
  custom: {
    50: '#de81d2',
    500: '#cb42be',
    950: '#000000',
  },
}
SCSS
$custom: #cb42be;
$custom-light: #de81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42be",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 305.693,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61652,
    "c": 0.21881,
    "h": 331.9
  },
  "luminance": 0.20311
}

Semantic roles & 50–950 ramp

primary
#CB42BE
secondary
#97D29C
accent
#E05648
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CB42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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