#C478DB#C478DB

#C478DB is a light, vivid purple. Relative luminance 0.303; OKLCH L 69.0% C 0.160 H 318.0°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#C478DB
RGBrgb(196, 120, 219)
HSLhsl(286, 58%, 66%)
HSVhsv(286, 45%, 86%)
CMYKcmyk(10.5%, 45.2%, 0%, 14.1%)
CIE-LABlab(61.90, 45.87, -38.82)
CIE-LCHlch(61.90, 60.09, 319.76°)
OKLaboklab(69.04% 0.1193 -0.1073)
OKLCHoklch(69.04% 0.16 318)
XYZxyz(42.2658, 30.2845, 70.6232)
Luminance0.3028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C478DB #8FDB78
analogous
#9378DB #C478DB #DB78C1
triadic
#C478DB #DBC478 #78DBC4
tetradic
#C478DB #DB9378 #8FDB78 #78C1DB
square
#C478DB #DB9378 #8FDB78 #78C1DB
split-complementary
#C478DB #C1DB78 #78DB93
monochromatic
#8E2EAB #AF48CE #C478DB #D9A8E8 #EED9F5

Accessibility & contrast

On white

2.98
#C478DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#C478DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C478DB
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C478DB#FFFFFF#000000##000000
##C478DB1.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6791DE
Deuteranopia (green-blind)
#7C98D8
Tritanopia (blue-blind)
#C4859F
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #c478db;
/* rgb */ color: rgb(196, 120, 219);
/* oklch */ color: oklch(69.0% 0.160 318.0);
Tailwind
colors: {
  custom: {
    50: '#d7a1e6',
    500: '#c478db',
    950: '#000000',
  },
}
SCSS
$custom: #c478db;
$custom-light: #d7a1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#c478db",
  "rgb": {
    "r": 196,
    "g": 120,
    "b": 219
  },
  "hsl": {
    "h": 286.061,
    "s": 57.895,
    "l": 66.471
  },
  "oklch": {
    "l": 0.69037,
    "c": 0.16043,
    "h": 318
  },
  "luminance": 0.30283
}

Semantic roles & 50–950 ramp

primary
#C478DB
secondary
#CFE7C7
accent
#C52046
background
#FDFAFE
surface
#FBF3FC
border
#D4CDD5
text
#150F16
muted
#837F84

Preview Lab

Preview with #C478DB

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

Preview Lab → · Contrast checker → · Palette generator →

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