#C126B9#C126B9

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

Color values

HEX#C126B9
RGBrgb(193, 38, 185)
HSLhsl(303, 67%, 45%)
HSVhsv(303, 80%, 76%)
CMYKcmyk(0%, 80.3%, 4.1%, 24.3%)
CIE-LABlab(47.27, 73.07, -42.45)
CIE-LCHlch(47.27, 84.51, 329.85°)
OKLaboklab(57.73% 0.2077 -0.1173)
OKLCHoklch(57.73% 0.239 330.5)
XYZxyz(31.4423, 16.2290, 47.3661)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C126B9 #26C12E
analogous
#7C26C1 #C126B9 #C1266B
triadic
#C126B9 #B9C126 #26B9C1
tetradic
#C126B9 #C17C26 #26C12E #266BC1
square
#C126B9 #C17C26 #26C12E #266BC1
split-complementary
#C126B9 #6BC126 #26C17C
monochromatic
#5B1257 #8E1C88 #C126B9 #DB49D4 #E57CE0

Accessibility & contrast

On white

4.95
#C126B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#C126B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C126B9
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C126B9#FFFFFF#000000##FFFFFF
##C126B91.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0763BD
Deuteranopia (green-blind)
#5A77B5
Tritanopia (blue-blind)
#C93E70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c126b9;
/* rgb */ color: rgb(193, 38, 185);
/* oklch */ color: oklch(57.7% 0.239 330.5);
Tailwind
colors: {
  custom: {
    50: '#d875ce',
    500: '#c126b9',
    950: '#000000',
  },
}
SCSS
$custom: #c126b9;
$custom-light: #d875ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c126b9",
  "rgb": {
    "r": 193,
    "g": 38,
    "b": 185
  },
  "hsl": {
    "h": 303.097,
    "s": 67.1,
    "l": 45.294
  },
  "oklch": {
    "l": 0.57727,
    "c": 0.23854,
    "h": 330.5
  },
  "luminance": 0.16226
}

Semantic roles & 50–950 ramp

primary
#C126B9
secondary
#75CD7A
accent
#EA473E
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C126B9

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

Preview Lab → · Contrast checker → · Palette generator →

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