#CB42BF#CB42BF

#CB42BF is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.7% C 0.220 H 331.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#CB42BF
RGBrgb(203, 66, 191)
HSLhsl(305, 57%, 53%)
HSVhsv(305, 67%, 80%)
CMYKcmyk(0%, 67.5%, 5.9%, 20.4%)
CIE-LABlab(52.24, 67.57, -37.99)
CIE-LCHlch(52.24, 77.51, 330.65°)
OKLaboklab(61.7% 0.1932 -0.1044)
OKLCHoklch(61.7% 0.22 331.6)
XYZxyz(35.9808, 20.3573, 51.3144)
Luminance0.2036 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42BF #42CB4E
analogous
#9242CB #CB42BF #CB427B
triadic
#CB42BF #BFCB42 #42BFCB
tetradic
#CB42BF #CB9242 #42CB4E #427BCB
square
#CB42BF #CB9242 #42CB4E #427BCB
split-complementary
#CB42BF #7BCB42 #42CB92
monochromatic
#73206C #A32D99 #CB42BF #D872CF #E5A2E0

Accessibility & contrast

On white

4.14
#CB42BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#CB42BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42BF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42BF#FFFFFF#000000##000000
##CB42BF1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3970C3
Deuteranopia (green-blind)
#6B83BC
Tritanopia (blue-blind)
#D3507B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb42bf;
/* rgb */ color: rgb(203, 66, 191);
/* oklch */ color: oklch(61.7% 0.220 331.6);
Tailwind
colors: {
  custom: {
    50: '#de81d3',
    500: '#cb42bf',
    950: '#000000',
  },
}
SCSS
$custom: #cb42bf;
$custom-light: #de81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42bf",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 305.255,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61703,
    "c": 0.21955,
    "h": 331.6
  },
  "luminance": 0.20355
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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