#C126C7#C126C7

#C126C7 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.5% C 0.248 H 326.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#C126C7
RGBrgb(193, 38, 199)
HSLhsl(298, 68%, 46%)
HSVhsv(298, 81%, 78%)
CMYKcmyk(3%, 80.9%, 0%, 22%)
CIE-LABlab(48.07, 75.24, -49.33)
CIE-LCHlch(48.07, 89.97, 326.75°)
OKLaboklab(58.55% 0.2071 -0.1373)
OKLCHoklch(58.55% 0.249 326.5)
XYZxyz(32.9936, 16.8496, 55.5363)
Luminance0.1685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C126C7 #2CC726
analogous
#7126C7 #C126C7 #C7267D
triadic
#C126C7 #C7C126 #26C7C1
tetradic
#C126C7 #C77126 #2CC726 #267DC7
square
#C126C7 #C77126 #2CC726 #267DC7
split-complementary
#C126C7 #7DC726 #26C771
monochromatic
#5D1260 #8F1C94 #C126C7 #D84DDD #E381E7

Accessibility & contrast

On white

4.81
#C126C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#C126C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C126C7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C126C7#FFFFFF#000000##FFFFFF
##C126C71.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CB
Deuteranopia (green-blind)
#5178C3
Tritanopia (blue-blind)
#C64678
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c126c7;
/* rgb */ color: rgb(193, 38, 199);
/* oklch */ color: oklch(58.5% 0.248 326.5);
Tailwind
colors: {
  custom: {
    50: '#d875d9',
    500: '#c126c7',
    950: '#000000',
  },
}
SCSS
$custom: #c126c7;
$custom-light: #d875d9;
$custom-dark: #000000;
JSON
{
  "hex": "#c126c7",
  "rgb": {
    "r": 193,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 297.764,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.58548,
    "c": 0.2485,
    "h": 326.5
  },
  "luminance": 0.16847
}

Semantic roles & 50–950 ramp

primary
#C126C7
secondary
#7DCF79
accent
#EB3D43
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #C126C7

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

Preview Lab → · Contrast checker → · Palette generator →

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