#C151B7#C151B7

#C151B7 is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.5% C 0.187 H 331.2°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#C151B7
RGBrgb(193, 81, 183)
HSLhsl(305, 47%, 54%)
HSVhsv(305, 58%, 76%)
CMYKcmyk(0%, 58%, 5.2%, 24.3%)
CIE-LABlab(52.56, 57.62, -32.96)
CIE-LCHlch(52.56, 66.38, 330.23°)
OKLaboklab(61.51% 0.164 -0.0902)
OKLCHoklch(61.51% 0.187 331.2)
XYZxyz(33.4818, 20.6435, 47.0117)
Luminance0.2064 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C151B7 #51C15B
analogous
#9351C1 #C151B7 #C1517F
triadic
#C151B7 #B7C151 #51B7C1
tetradic
#C151B7 #C19351 #51C15B #517FC1
square
#C151B7 #C19351 #51C15B #517FC1
split-complementary
#C151B7 #7FC151 #51C193
monochromatic
#702869 #9D3894 #C151B7 #D17ECA #E1ABDC

Accessibility & contrast

On white

4.10
#C151B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#C151B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C151B7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C151B7#FFFFFF#000000##000000
##C151B71.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c151b7;
/* rgb */ color: rgb(193, 81, 183);
/* oklch */ color: oklch(61.5% 0.187 331.2);
Tailwind
colors: {
  custom: {
    50: '#d688cd',
    500: '#c151b7',
    950: '#000000',
  },
}
SCSS
$custom: #c151b7;
$custom-light: #d688cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c151b7",
  "rgb": {
    "r": 193,
    "g": 81,
    "b": 183
  },
  "hsl": {
    "h": 305.357,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61511,
    "c": 0.18718,
    "h": 331.2
  },
  "luminance": 0.20641
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C151B7

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

Preview Lab → · Contrast checker → · Palette generator →

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