#C151B1#C151B1

#C151B1 is a mid, vivid purple. Relative luminance 0.204; OKLCH L 61.2% C 0.182 H 333.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#C151B1
RGBrgb(193, 81, 177)
HSLhsl(309, 47%, 54%)
HSVhsv(309, 58%, 76%)
CMYKcmyk(0%, 58%, 8.3%, 24.3%)
CIE-LABlab(52.29, 56.63, -29.90)
CIE-LCHlch(52.29, 64.04, 332.17°)
OKLaboklab(61.22% 0.1631 -0.0815)
OKLCHoklch(61.22% 0.182 333.5)
XYZxyz(32.8706, 20.3990, 43.7926)
Luminance0.2040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C151B1 #51C161
analogous
#9951C1 #C151B1 #C15179
triadic
#C151B1 #B1C151 #51B1C1
tetradic
#C151B1 #C19951 #51C161 #5179C1
square
#C151B1 #C19951 #51C161 #5179C1
split-complementary
#C151B1 #79C151 #51C199
monochromatic
#702865 #9D388E #C151B1 #D17EC5 #E1ABD9

Accessibility & contrast

On white

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

On black

5.08
#C151B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C151B1
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C151B1#FFFFFF#000000##000000
##C151B11.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c151b1;
/* rgb */ color: rgb(193, 81, 177);
/* oklch */ color: oklch(61.2% 0.182 333.5);
Tailwind
colors: {
  custom: {
    50: '#d688c8',
    500: '#c151b1',
    950: '#000000',
  },
}
SCSS
$custom: #c151b1;
$custom-light: #d688c8;
$custom-dark: #000000;
JSON
{
  "hex": "#c151b1",
  "rgb": {
    "r": 193,
    "g": 81,
    "b": 177
  },
  "hsl": {
    "h": 308.571,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61223,
    "c": 0.18234,
    "h": 333.5
  },
  "luminance": 0.20397
}

Semantic roles & 50–950 ramp

primary
#C151B1
secondary
#9FCFA6
accent
#D76451
background
#FDF8FC
surface
#FBF0F8
border
#D4CBD1
text
#150C13
muted
#837D82

Preview Lab

Preview with #C151B1

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

Preview Lab → · Contrast checker → · Palette generator →

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