#C126BA#C126BA

#C126BA is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.8% C 0.239 H 330.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#C126BA
RGBrgb(193, 38, 186)
HSLhsl(303, 67%, 45%)
HSVhsv(303, 80%, 76%)
CMYKcmyk(0%, 80.3%, 3.6%, 24.3%)
CIE-LABlab(47.33, 73.22, -42.95)
CIE-LCHlch(47.33, 84.89, 329.61°)
OKLaboklab(57.78% 0.2077 -0.1187)
OKLCHoklch(57.78% 0.239 330.2)
XYZxyz(31.5483, 16.2714, 47.9240)
Luminance0.1627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C126BA #26C12D
analogous
#7B26C1 #C126BA #C1266C
triadic
#C126BA #BAC126 #26BAC1
tetradic
#C126BA #C17B26 #26C12D #266CC1
square
#C126BA #C17B26 #26C12D #266CC1
split-complementary
#C126BA #6CC126 #26C17B
monochromatic
#5B1257 #8E1C89 #C126BA #DB49D5 #E57CE0

Accessibility & contrast

On white

4.94
#C126BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C126BA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C126BA#FFFFFF#000000##FFFFFF
##C126BA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0363BE
Deuteranopia (green-blind)
#5977B6
Tritanopia (blue-blind)
#C83E71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c126ba;
/* rgb */ color: rgb(193, 38, 186);
/* oklch */ color: oklch(57.8% 0.239 330.2);
Tailwind
colors: {
  custom: {
    50: '#d875cf',
    500: '#c126ba',
    950: '#000000',
  },
}
SCSS
$custom: #c126ba;
$custom-light: #d875cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c126ba",
  "rgb": {
    "r": 193,
    "g": 38,
    "b": 186
  },
  "hsl": {
    "h": 302.71,
    "s": 67.1,
    "l": 45.294
  },
  "oklch": {
    "l": 0.57784,
    "c": 0.23924,
    "h": 330.2
  },
  "luminance": 0.16269
}

Semantic roles & 50–950 ramp

primary
#C126BA
secondary
#75CD79
accent
#EA463E
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C126BA

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

Preview Lab → · Contrast checker → · Palette generator →

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