#C151B5#C151B5

#C151B5 is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.4% C 0.186 H 331.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#C151B5
RGBrgb(193, 81, 181)
HSLhsl(306, 47%, 54%)
HSVhsv(306, 58%, 76%)
CMYKcmyk(0%, 58%, 6.2%, 24.3%)
CIE-LABlab(52.47, 57.29, -31.94)
CIE-LCHlch(52.47, 65.59, 330.86°)
OKLaboklab(61.41% 0.1637 -0.0873)
OKLCHoklch(61.41% 0.186 331.9)
XYZxyz(33.2752, 20.5609, 45.9231)
Luminance0.2056 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C151B5 #51C15D
analogous
#9551C1 #C151B5 #C1517D
triadic
#C151B5 #B5C151 #51B5C1
tetradic
#C151B5 #C19551 #51C15D #517DC1
square
#C151B5 #C19551 #51C15D #517DC1
split-complementary
#C151B5 #7DC151 #51C195
monochromatic
#702868 #9D3892 #C151B5 #D17EC8 #E1ABDB

Accessibility & contrast

On white

4.11
#C151B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#C151B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C151B5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C151B5#FFFFFF#000000##000000
##C151B51.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C73B8
Deuteranopia (green-blind)
#7083B2
Tritanopia (blue-blind)
#C85A7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c151b5;
/* rgb */ color: rgb(193, 81, 181);
/* oklch */ color: oklch(61.4% 0.186 331.9);
Tailwind
colors: {
  custom: {
    50: '#d688cb',
    500: '#c151b5',
    950: '#000000',
  },
}
SCSS
$custom: #c151b5;
$custom-light: #d688cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c151b5",
  "rgb": {
    "r": 193,
    "g": 81,
    "b": 181
  },
  "hsl": {
    "h": 306.429,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61414,
    "c": 0.18556,
    "h": 331.9
  },
  "luminance": 0.20559
}

Semantic roles & 50–950 ramp

primary
#C151B5
secondary
#9FCFA4
accent
#D75F51
background
#FDF8FC
surface
#FBF0F8
border
#D4CBD1
text
#150C13
muted
#837D82

Preview Lab

Preview with #C151B5

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

Preview Lab → · Contrast checker → · Palette generator →

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