#C126B8#C126B8

#C126B8 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.7% C 0.238 H 330.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#C126B8
RGBrgb(193, 38, 184)
HSLhsl(303, 67%, 45%)
HSVhsv(303, 80%, 76%)
CMYKcmyk(0%, 80.3%, 4.7%, 24.3%)
CIE-LABlab(47.22, 72.92, -41.95)
CIE-LCHlch(47.22, 84.13, 330.09°)
OKLaboklab(57.67% 0.2077 -0.1158)
OKLCHoklch(57.67% 0.238 330.9)
XYZxyz(31.3371, 16.1870, 46.8120)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C126B8 #26C12F
analogous
#7D26C1 #C126B8 #C1266A
triadic
#C126B8 #B8C126 #26B8C1
tetradic
#C126B8 #C17D26 #26C12F #266AC1
square
#C126B8 #C17D26 #26C12F #266AC1
split-complementary
#C126B8 #6AC126 #26C17D
monochromatic
#5B1257 #8E1C87 #C126B8 #DB49D3 #E57CDF

Accessibility & contrast

On white

4.96
#C126B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#C126B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C126B8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C126B8#FFFFFF#000000##FFFFFF
##C126B81.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B63BC
Deuteranopia (green-blind)
#5A77B4
Tritanopia (blue-blind)
#C93D70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c126b8;
/* rgb */ color: rgb(193, 38, 184);
/* oklch */ color: oklch(57.7% 0.238 330.9);
Tailwind
colors: {
  custom: {
    50: '#d874ce',
    500: '#c126b8',
    950: '#000000',
  },
}
SCSS
$custom: #c126b8;
$custom-light: #d874ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c126b8",
  "rgb": {
    "r": 193,
    "g": 38,
    "b": 184
  },
  "hsl": {
    "h": 303.484,
    "s": 67.1,
    "l": 45.294
  },
  "oklch": {
    "l": 0.57671,
    "c": 0.23784,
    "h": 330.9
  },
  "luminance": 0.16184
}

Semantic roles & 50–950 ramp

primary
#C126B8
secondary
#75CD7B
accent
#EA483E
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C126B8

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

Preview Lab → · Contrast checker → · Palette generator →

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