#CC00A8

A color in the Purple, Crimson, Magenta family

#cc00a8 is a color in the Purple, Crimson, Magenta family: RGB(204, 0, 168), HSL(311°, 100%, 40%), CMYK(0%, 100%, 18%, 20%). Closest named color: mediumvioletred. Contrast is 5.08:1 on white and 4.13:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#cc00a8
RGBrgb(204 0 168)
RGB (legacy)rgb(204, 0, 168)
RGB %rgb(80% 0% 66%)
HSLhsl(311 100% 40%)
HSV / HSBhsv(311, 100%, 80%)
HWBhwb(311 0% 20%)
CMYKcmyk(0%, 100%, 18%, 20%)
CIELAB (D50)lab(46.72 75.57 -32.68)
LCHlch(46.72 82.33 336.61)
OKLaboklab(0.5728 0.2332 -0.091)
OKLCHoklch(0.5728 0.2503 338.68)
Decimal13369512

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 5.7
Closest web-safe color#cc0099
Hue311°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)40%
Brightness or Value (HSV)80%
Luminance (Rec.601 / Rec.709)31% / 22%
Relative luminance (WCAG)0.1566
Red / Green / Blue204 / 0 / 168

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.08:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.13:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 72.5 / -29.2 · As background with white / black text: Lc -77.9 / 31.6

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #cc00a8;
  --color-brand-oklch: oklch(57.28% 0.2503 338.68);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(204 0 168 / 50%); }
/* Tailwind CSS */
<div class="bg-[#cc00a8] text-[#cc00a8] border-[#cc00a8]">