#C228AD#C228AD

#C228AD is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.3% C 0.229 H 334.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#C228AD
RGBrgb(194, 40, 173)
HSLhsl(308, 66%, 46%)
HSVhsv(308, 79%, 76%)
CMYKcmyk(0%, 79.4%, 10.8%, 23.9%)
CIE-LABlab(46.98, 71.02, -35.84)
CIE-LCHlch(46.98, 79.55, 333.22°)
OKLaboklab(57.35% 0.2071 -0.0982)
OKLCHoklch(57.35% 0.229 334.6)
XYZxyz(30.5501, 16.0068, 41.0077)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C228AD #28C23D
analogous
#8A28C2 #C228AD #C22860
triadic
#C228AD #ADC228 #28ADC2
tetradic
#C228AD #C28A28 #28C23D #2860C2
square
#C228AD #C28A28 #28C23D #2860C2
split-complementary
#C228AD #60C228 #28C28A
monochromatic
#5D1353 #8F1E80 #C228AD #DA4DC7 #E580D7

Accessibility & contrast

On white

5.00
#C228AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#C228AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C228AD
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C228AD#FFFFFF#000000##FFFFFF
##C228AD1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2561B0
Deuteranopia (green-blind)
#6277AA
Tritanopia (blue-blind)
#CC386A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c228ad;
/* rgb */ color: rgb(194, 40, 173);
/* oklch */ color: oklch(57.3% 0.229 334.6);
Tailwind
colors: {
  custom: {
    50: '#d975c6',
    500: '#c228ad',
    950: '#000000',
  },
}
SCSS
$custom: #c228ad;
$custom-light: #d975c6;
$custom-dark: #000000;
JSON
{
  "hex": "#c228ad",
  "rgb": {
    "r": 194,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 308.182,
    "s": 65.812,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57348,
    "c": 0.22915,
    "h": 334.6
  },
  "luminance": 0.16004
}

Semantic roles & 50–950 ramp

primary
#C228AD
secondary
#78CD84
accent
#E9563F
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C228AD

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

Preview Lab → · Contrast checker → · Palette generator →

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