#C151B4#C151B4

#C151B4 is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.4% C 0.185 H 332.3°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#C151B4
RGBrgb(193, 81, 180)
HSLhsl(307, 47%, 54%)
HSVhsv(307, 58%, 76%)
CMYKcmyk(0%, 58%, 6.7%, 24.3%)
CIE-LABlab(52.42, 57.12, -31.43)
CIE-LCHlch(52.42, 65.20, 331.18°)
OKLaboklab(61.37% 0.1636 -0.0859)
OKLCHoklch(61.37% 0.185 332.3)
XYZxyz(33.1729, 20.5200, 45.3847)
Luminance0.2052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C151B4 #51C15E
analogous
#9651C1 #C151B4 #C1517C
triadic
#C151B4 #B4C151 #51B4C1
tetradic
#C151B4 #C19651 #51C15E #517CC1
square
#C151B4 #C19651 #51C15E #517CC1
split-complementary
#C151B4 #7CC151 #51C196
monochromatic
#702867 #9D3891 #C151B4 #D17EC7 #E1ABDB

Accessibility & contrast

On white

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

On black

5.10
#C151B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C151B4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C151B4#FFFFFF#000000##000000
##C151B41.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D73B7
Deuteranopia (green-blind)
#7083B1
Tritanopia (blue-blind)
#C95A7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c151b4;
/* rgb */ color: rgb(193, 81, 180);
/* oklch */ color: oklch(61.4% 0.185 332.3);
Tailwind
colors: {
  custom: {
    50: '#d688ca',
    500: '#c151b4',
    950: '#000000',
  },
}
SCSS
$custom: #c151b4;
$custom-light: #d688ca;
$custom-dark: #000000;
JSON
{
  "hex": "#c151b4",
  "rgb": {
    "r": 193,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 306.964,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61366,
    "c": 0.18475,
    "h": 332.3
  },
  "luminance": 0.20518
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C151B4

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

Preview Lab → · Contrast checker → · Palette generator →

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