#C126C0#C126C0

#C126C0 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 58.1% C 0.243 H 328.5°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#C126C0
RGBrgb(193, 38, 192)
HSLhsl(300, 67%, 45%)
HSVhsv(300, 80%, 76%)
CMYKcmyk(0%, 80.3%, 0.5%, 24.3%)
CIE-LABlab(47.66, 74.14, -45.91)
CIE-LCHlch(47.66, 87.21, 328.23°)
OKLaboklab(58.13% 0.2075 -0.1274)
OKLCHoklch(58.13% 0.243 328.5)
XYZxyz(32.1995, 16.5319, 51.3540)
Luminance0.1653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C126C0 #26C127
analogous
#7426C1 #C126C0 #C12672
triadic
#C126C0 #C0C126 #26C0C1
tetradic
#C126C0 #C17426 #26C127 #2672C1
square
#C126C0 #C17426 #26C127 #2672C1
split-complementary
#C126C0 #72C126 #26C174
monochromatic
#5B125A #8E1C8D #C126C0 #DB49DA #E57CE5

Accessibility & contrast

On white

4.88
#C126C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#C126C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C126C0
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C126C0#FFFFFF#000000##FFFFFF
##C126C01.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C4
Deuteranopia (green-blind)
#5678BC
Tritanopia (blue-blind)
#C74274
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c126c0;
/* rgb */ color: rgb(193, 38, 192);
/* oklch */ color: oklch(58.1% 0.243 328.5);
Tailwind
colors: {
  custom: {
    50: '#d875d3',
    500: '#c126c0',
    950: '#000000',
  },
}
SCSS
$custom: #c126c0;
$custom-light: #d875d3;
$custom-dark: #000000;
JSON
{
  "hex": "#c126c0",
  "rgb": {
    "r": 193,
    "g": 38,
    "b": 192
  },
  "hsl": {
    "h": 300.387,
    "s": 67.1,
    "l": 45.294
  },
  "oklch": {
    "l": 0.58131,
    "c": 0.24347,
    "h": 328.5
  },
  "luminance": 0.16529
}

Semantic roles & 50–950 ramp

primary
#C126C0
secondary
#75CD76
accent
#EA3F3E
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #C126C0

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

Preview Lab → · Contrast checker → · Palette generator →

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