#C040AF#C040AF

#C040AF is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.1% C 0.204 H 333.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C040AF
RGBrgb(192, 64, 175)
HSLhsl(308, 50%, 50%)
HSVhsv(308, 67%, 75%)
CMYKcmyk(0%, 66.7%, 8.9%, 24.7%)
CIE-LABlab(49.46, 63.16, -33.15)
CIE-LCHlch(49.46, 71.33, 332.31°)
OKLaboklab(59.1% 0.1825 -0.0907)
OKLCHoklch(59.1% 0.204 333.6)
XYZxyz(31.3097, 17.9709, 42.3688)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040AF #40C051
analogous
#9140C0 #C040AF #C0406F
triadic
#C040AF #AFC040 #40AFC0
tetradic
#C040AF #C09140 #40C051 #406FC0
square
#C040AF #C09140 #40C051 #406FC0
split-complementary
#C040AF #6FC040 #40C091
monochromatic
#64215C #923085 #C040AF #CF6EC2 #DE9CD6

Accessibility & contrast

On white

4.57
#C040AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#C040AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040AF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040AF#FFFFFF#000000##000000
##C040AF1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6AB2
Deuteranopia (green-blind)
#697CAC
Tritanopia (blue-blind)
#C94B72
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c040af;
/* rgb */ color: rgb(192, 64, 175);
/* oklch */ color: oklch(59.1% 0.204 333.6);
Tailwind
colors: {
  custom: {
    50: '#d67fc7',
    500: '#c040af',
    950: '#000000',
  },
}
SCSS
$custom: #c040af;
$custom-light: #d67fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#c040af",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 307.969,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59102,
    "c": 0.20382,
    "h": 333.6
  },
  "luminance": 0.17968
}

Semantic roles & 50–950 ramp

primary
#C040AF
secondary
#91CB99
accent
#DA604E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C040AF

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

Preview Lab → · Contrast checker → · Palette generator →

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