#C126C5#C126C5

#C126C5 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.4% C 0.247 H 327.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#C126C5
RGBrgb(193, 38, 197)
HSLhsl(298, 68%, 46%)
HSVhsv(298, 81%, 77%)
CMYKcmyk(2%, 80.7%, 0%, 22.7%)
CIE-LABlab(47.95, 74.92, -48.36)
CIE-LCHlch(47.95, 89.17, 327.16°)
OKLaboklab(58.43% 0.2072 -0.1345)
OKLCHoklch(58.43% 0.247 327)
XYZxyz(32.7629, 16.7573, 54.3214)
Luminance0.1676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C126C5 #2AC526
analogous
#7226C5 #C126C5 #C52679
triadic
#C126C5 #C5C126 #26C5C1
tetradic
#C126C5 #C57226 #2AC526 #2679C5
square
#C126C5 #C57226 #2AC526 #2679C5
split-complementary
#C126C5 #79C526 #26C572
monochromatic
#5C125E #8F1C92 #C126C5 #D94CDC #E47FE6

Accessibility & contrast

On white

4.83
#C126C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#C126C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C126C5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C126C5#FFFFFF#000000##FFFFFF
##C126C51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#5278C1
Tritanopia (blue-blind)
#C74477
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c126c5;
/* rgb */ color: rgb(193, 38, 197);
/* oklch */ color: oklch(58.4% 0.247 327.0);
Tailwind
colors: {
  custom: {
    50: '#d875d7',
    500: '#c126c5',
    950: '#000000',
  },
}
SCSS
$custom: #c126c5;
$custom-light: #d875d7;
$custom-dark: #000000;
JSON
{
  "hex": "#c126c5",
  "rgb": {
    "r": 193,
    "g": 38,
    "b": 197
  },
  "hsl": {
    "h": 298.491,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.58428,
    "c": 0.24705,
    "h": 327
  },
  "luminance": 0.16755
}

Semantic roles & 50–950 ramp

primary
#C126C5
secondary
#7ACF78
accent
#EB3D42
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #C126C5

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

Preview Lab → · Contrast checker → · Palette generator →

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