#C151B8#C151B8

#C151B8 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.6% C 0.188 H 330.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#C151B8
RGBrgb(193, 81, 184)
HSLhsl(305, 47%, 54%)
HSVhsv(305, 58%, 76%)
CMYKcmyk(0%, 58%, 4.7%, 24.3%)
CIE-LABlab(52.60, 57.79, -33.47)
CIE-LCHlch(52.60, 66.78, 329.92°)
OKLaboklab(61.56% 0.1641 -0.0917)
OKLCHoklch(61.56% 0.188 330.8)
XYZxyz(33.5863, 20.6853, 47.5618)
Luminance0.2068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C151B8 #51C15A
analogous
#9251C1 #C151B8 #C15180
triadic
#C151B8 #B8C151 #51B8C1
tetradic
#C151B8 #C19251 #51C15A #5180C1
square
#C151B8 #C19251 #51C15A #5180C1
split-complementary
#C151B8 #80C151 #51C192
monochromatic
#70286A #9D3895 #C151B8 #D17ECA #E1ABDD

Accessibility & contrast

On white

4.09
#C151B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#C151B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C151B8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C151B8#FFFFFF#000000##000000
##C151B81.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B74BB
Deuteranopia (green-blind)
#6E83B5
Tritanopia (blue-blind)
#C85B7D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c151b8;
/* rgb */ color: rgb(193, 81, 184);
/* oklch */ color: oklch(61.6% 0.188 330.8);
Tailwind
colors: {
  custom: {
    50: '#d688cd',
    500: '#c151b8',
    950: '#000000',
  },
}
SCSS
$custom: #c151b8;
$custom-light: #d688cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c151b8",
  "rgb": {
    "r": 193,
    "g": 81,
    "b": 184
  },
  "hsl": {
    "h": 304.821,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.6156,
    "c": 0.188,
    "h": 330.8
  },
  "luminance": 0.20683
}

Semantic roles & 50–950 ramp

primary
#C151B8
secondary
#9FCFA3
accent
#D75C51
background
#FDF8FC
surface
#FBF0F9
border
#D4CBD2
text
#150C13
muted
#837D82

Preview Lab

Preview with #C151B8

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

Preview Lab → · Contrast checker → · Palette generator →

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