#C151B2#C151B2

#C151B2 is a mid, vivid purple. Relative luminance 0.204; OKLCH L 61.3% C 0.183 H 333.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#C151B2
RGBrgb(193, 81, 178)
HSLhsl(308, 47%, 54%)
HSVhsv(308, 58%, 76%)
CMYKcmyk(0%, 58%, 7.8%, 24.3%)
CIE-LABlab(52.33, 56.79, -30.41)
CIE-LCHlch(52.33, 64.42, 331.83°)
OKLaboklab(61.27% 0.1633 -0.0829)
OKLCHoklch(61.27% 0.183 333.1)
XYZxyz(32.9707, 20.4390, 44.3194)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C151B2 #51C160
analogous
#9851C1 #C151B2 #C1517A
triadic
#C151B2 #B2C151 #51B2C1
tetradic
#C151B2 #C19851 #51C160 #517AC1
square
#C151B2 #C19851 #51C160 #517AC1
split-complementary
#C151B2 #7AC151 #51C198
monochromatic
#702866 #9D388F #C151B2 #D17EC6 #E1ABDA

Accessibility & contrast

On white

4.13
#C151B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#C151B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C151B2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C151B2#FFFFFF#000000##000000
##C151B21.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E73B5
Deuteranopia (green-blind)
#7183AF
Tritanopia (blue-blind)
#C9597A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c151b2;
/* rgb */ color: rgb(193, 81, 178);
/* oklch */ color: oklch(61.3% 0.183 333.1);
Tailwind
colors: {
  custom: {
    50: '#d688c9',
    500: '#c151b2',
    950: '#000000',
  },
}
SCSS
$custom: #c151b2;
$custom-light: #d688c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c151b2",
  "rgb": {
    "r": 193,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 308.036,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.6127,
    "c": 0.18314,
    "h": 333.1
  },
  "luminance": 0.20437
}

Semantic roles & 50–950 ramp

primary
#C151B2
secondary
#9FCFA5
accent
#D76351
background
#FDF8FC
surface
#FBF0F8
border
#D4CBD1
text
#150C13
muted
#837D82

Preview Lab

Preview with #C151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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