#C240AF#C240AF

#C240AF is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.4% C 0.205 H 334.2°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#C240AF
RGBrgb(194, 64, 175)
HSLhsl(309, 52%, 51%)
HSVhsv(309, 67%, 76%)
CMYKcmyk(0%, 67%, 9.8%, 23.9%)
CIE-LABlab(49.78, 63.65, -32.63)
CIE-LCHlch(49.78, 71.53, 332.86°)
OKLaboklab(59.39% 0.1846 -0.0891)
OKLCHoklch(59.39% 0.205 334.2)
XYZxyz(31.8196, 18.2339, 42.3927)
Luminance0.1823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240AF #40C253
analogous
#9440C2 #C240AF #C2406E
triadic
#C240AF #AFC240 #40AFC2
tetradic
#C240AF #C29440 #40C253 #406EC2
square
#C240AF #C29440 #40C253 #406EC2
split-complementary
#C240AF #6EC240 #40C294
monochromatic
#67215D #953086 #C240AF #D16EC2 #E09DD6

Accessibility & contrast

On white

4.52
#C240AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#C240AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240AF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240AF#FFFFFF#000000##000000
##C240AF1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6AB2
Deuteranopia (green-blind)
#6A7DAC
Tritanopia (blue-blind)
#CB4A72
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c240af;
/* rgb */ color: rgb(194, 64, 175);
/* oklch */ color: oklch(59.4% 0.205 334.2);
Tailwind
colors: {
  custom: {
    50: '#d87fc7',
    500: '#c240af',
    950: '#000000',
  },
}
SCSS
$custom: #c240af;
$custom-light: #d87fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#c240af",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 308.769,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59394,
    "c": 0.205,
    "h": 334.2
  },
  "luminance": 0.18231
}

Semantic roles & 50–950 ramp

primary
#C240AF
secondary
#92CC9A
accent
#DB624D
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C240AF

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

Preview Lab → · Contrast checker → · Palette generator →

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