#CB51A1#CB51A1

#CB51A1 is a mid, vivid pink. Relative luminance 0.212; OKLCH L 61.9% C 0.178 H 343.4°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#CB51A1
RGBrgb(203, 81, 161)
HSLhsl(321, 54%, 56%)
HSVhsv(321, 60%, 80%)
CMYKcmyk(0%, 60.1%, 20.7%, 20.4%)
CIE-LABlab(53.12, 57.02, -19.13)
CIE-LCHlch(53.12, 60.14, 341.46°)
OKLaboklab(61.92% 0.1706 -0.051)
OKLCHoklch(61.92% 0.178 343.4)
XYZxyz(34.0050, 21.1576, 36.0042)
Luminance0.2115 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51A1 #51CB7B
analogous
#B851CB #CB51A1 #CB5164
triadic
#CB51A1 #A1CB51 #51A1CB
tetradic
#CB51A1 #CBB851 #51CB7B #5164CB
square
#CB51A1 #CBB851 #51CB7B #5164CB
split-complementary
#CB51A1 #64CB51 #51CBB8
monochromatic
#7C255E #AC3382 #CB51A1 #D980BA #E7AFD4

Accessibility & contrast

On white

4.01
#CB51A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#CB51A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51A1
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51A1#FFFFFF#000000##000000
##CB51A11.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A3
Deuteranopia (green-blind)
#7E869E
Tritanopia (blue-blind)
#D75172
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb51a1;
/* rgb */ color: rgb(203, 81, 161);
/* oklch */ color: oklch(61.9% 0.178 343.4);
Tailwind
colors: {
  custom: {
    50: '#de88bd',
    500: '#cb51a1',
    950: '#000000',
  },
}
SCSS
$custom: #cb51a1;
$custom-light: #de88bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51a1",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 161
  },
  "hsl": {
    "h": 320.656,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.6192,
    "c": 0.17803,
    "h": 343.4
  },
  "luminance": 0.21155
}

Semantic roles & 50–950 ramp

primary
#CB51A1
secondary
#A3D5B4
accent
#DD7D4A
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CB51A1

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

Preview Lab → · Contrast checker → · Palette generator →

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