#C045AF#C045AF

#C045AF is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.6% C 0.197 H 333.7°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#C045AF
RGBrgb(192, 69, 175)
HSLhsl(308, 49%, 51%)
HSVhsv(308, 64%, 75%)
CMYKcmyk(0%, 64.1%, 8.9%, 24.7%)
CIE-LABlab(50.17, 61.19, -32.04)
CIE-LCHlch(50.17, 69.07, 332.36°)
OKLaboklab(59.62% 0.1768 -0.0875)
OKLCHoklch(59.62% 0.197 333.7)
XYZxyz(31.6044, 18.5603, 42.4671)
Luminance0.1856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C045AF #45C056
analogous
#9345C0 #C045AF #C04571
triadic
#C045AF #AFC045 #45AFC0
tetradic
#C045AF #C09345 #45C056 #4571C0
square
#C045AF #C09345 #45C056 #4571C0
split-complementary
#C045AF #71C045 #45C093
monochromatic
#68235E #953388 #C045AF #CF73C3 #DFA0D6

Accessibility & contrast

On white

4.46
#C045AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#C045AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C045AF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C045AF#FFFFFF#000000##000000
##C045AF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#426CB2
Deuteranopia (green-blind)
#6B7EAC
Tritanopia (blue-blind)
#C84F74
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c045af;
/* rgb */ color: rgb(192, 69, 175);
/* oklch */ color: oklch(59.6% 0.197 333.7);
Tailwind
colors: {
  custom: {
    50: '#d681c7',
    500: '#c045af',
    950: '#000000',
  },
}
SCSS
$custom: #c045af;
$custom-light: #d681c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c045af",
  "rgb": {
    "r": 192,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 308.293,
    "s": 49.398,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59616,
    "c": 0.19726,
    "h": 333.7
  },
  "luminance": 0.18558
}

Semantic roles & 50–950 ramp

primary
#C045AF
secondary
#95CC9D
accent
#D9624F
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C045AF

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

Preview Lab → · Contrast checker → · Palette generator →

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