#C228C5#C228C5

#C228C5 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.7% C 0.246 H 327.3°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C228C5
RGBrgb(194, 40, 197)
HSLhsl(299, 66%, 46%)
HSVhsv(299, 80%, 77%)
CMYKcmyk(1.5%, 79.7%, 0%, 22.7%)
CIE-LABlab(48.29, 74.63, -47.82)
CIE-LCHlch(48.29, 88.63, 327.35°)
OKLaboklab(58.7% 0.2069 -0.1329)
OKLCHoklch(58.7% 0.246 327.3)
XYZxyz(33.0845, 17.0206, 54.3553)
Luminance0.1702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C228C5 #2BC528
analogous
#7428C5 #C228C5 #C52879
triadic
#C228C5 #C5C228 #28C5C2
tetradic
#C228C5 #C57428 #2BC528 #2879C5
square
#C228C5 #C57428 #2BC528 #2879C5
split-complementary
#C228C5 #79C528 #28C574
monochromatic
#5E135F #901E92 #C228C5 #D94FDB #E482E6

Accessibility & contrast

On white

4.77
#C228C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#C228C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C228C5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C228C5#FFFFFF#000000##FFFFFF
##C228C51.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#5479C1
Tritanopia (blue-blind)
#C84578
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c228c5;
/* rgb */ color: rgb(194, 40, 197);
/* oklch */ color: oklch(58.7% 0.246 327.3);
Tailwind
colors: {
  custom: {
    50: '#d976d7',
    500: '#c228c5',
    950: '#000000',
  },
}
SCSS
$custom: #c228c5;
$custom-light: #d976d7;
$custom-dark: #000000;
JSON
{
  "hex": "#c228c5",
  "rgb": {
    "r": 194,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 298.854,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.58696,
    "c": 0.24591,
    "h": 327.3
  },
  "luminance": 0.17018
}

Semantic roles & 50–950 ramp

primary
#C228C5
secondary
#7CCE7A
accent
#E93F42
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #C228C5

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

Preview Lab → · Contrast checker → · Palette generator →

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