#C126BD#C126BD

#C126BD is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 58.0% C 0.241 H 329.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#C126BD
RGBrgb(193, 38, 189)
HSLhsl(302, 67%, 45%)
HSVhsv(302, 80%, 76%)
CMYKcmyk(0%, 80.3%, 2.1%, 24.3%)
CIE-LABlab(47.50, 73.68, -44.44)
CIE-LCHlch(47.50, 86.04, 328.91°)
OKLaboklab(57.96% 0.2076 -0.1231)
OKLCHoklch(57.96% 0.241 329.3)
XYZxyz(31.8705, 16.4003, 49.6213)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C126BD #26C12A
analogous
#7726C1 #C126BD #C12670
triadic
#C126BD #BDC126 #26BDC1
tetradic
#C126BD #C17726 #26C12A #2670C1
square
#C126BD #C17726 #26C12A #2670C1
split-complementary
#C126BD #70C126 #26C177
monochromatic
#5B1259 #8E1C8B #C126BD #DB49D7 #E57CE3

Accessibility & contrast

On white

4.91
#C126BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#C126BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C126BD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C126BD#FFFFFF#000000##FFFFFF
##C126BD1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C1
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#C84073
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c126bd;
/* rgb */ color: rgb(193, 38, 189);
/* oklch */ color: oklch(58.0% 0.241 329.3);
Tailwind
colors: {
  custom: {
    50: '#d875d1',
    500: '#c126bd',
    950: '#000000',
  },
}
SCSS
$custom: #c126bd;
$custom-light: #d875d1;
$custom-dark: #000000;
JSON
{
  "hex": "#c126bd",
  "rgb": {
    "r": 193,
    "g": 38,
    "b": 189
  },
  "hsl": {
    "h": 301.548,
    "s": 67.1,
    "l": 45.294
  },
  "oklch": {
    "l": 0.57957,
    "c": 0.24136,
    "h": 329.3
  },
  "luminance": 0.16398
}

Semantic roles & 50–950 ramp

primary
#C126BD
secondary
#75CD78
accent
#EA423E
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C126BD

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

Preview Lab → · Contrast checker → · Palette generator →

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