#C126AF#C126AF

#C126AF is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.2% C 0.232 H 333.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#C126AF
RGBrgb(193, 38, 175)
HSLhsl(307, 67%, 45%)
HSVhsv(307, 80%, 76%)
CMYKcmyk(0%, 80.3%, 9.3%, 24.3%)
CIE-LABlab(46.74, 71.60, -37.42)
CIE-LCHlch(46.74, 80.79, 332.41°)
OKLaboklab(57.17% 0.2076 -0.1027)
OKLCHoklch(57.17% 0.232 333.7)
XYZxyz(30.4236, 15.8216, 42.0007)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C126AF #26C138
analogous
#8626C1 #C126AF #C12661
triadic
#C126AF #AFC126 #26AFC1
tetradic
#C126AF #C18626 #26C138 #2661C1
square
#C126AF #C18626 #26C138 #2661C1
split-complementary
#C126AF #61C126 #26C186
monochromatic
#5B1252 #8E1C81 #C126AF #DB49CA #E57CD9

Accessibility & contrast

On white

5.04
#C126AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#C126AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C126AF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C126AF#FFFFFF#000000##FFFFFF
##C126AF1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F61B2
Deuteranopia (green-blind)
#5F76AB
Tritanopia (blue-blind)
#CA386B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c126af;
/* rgb */ color: rgb(193, 38, 175);
/* oklch */ color: oklch(57.2% 0.232 333.7);
Tailwind
colors: {
  custom: {
    50: '#d874c7',
    500: '#c126af',
    950: '#000000',
  },
}
SCSS
$custom: #c126af;
$custom-light: #d874c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c126af",
  "rgb": {
    "r": 193,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 306.968,
    "s": 67.1,
    "l": 45.294
  },
  "oklch": {
    "l": 0.57174,
    "c": 0.23167,
    "h": 333.7
  },
  "luminance": 0.15819
}

Semantic roles & 50–950 ramp

primary
#C126AF
secondary
#75CD80
accent
#EA523E
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #C126AF

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

Preview Lab → · Contrast checker → · Palette generator →

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