#C478F6#C478F6

#C478F6 is a light, vivid violet. Relative luminance 0.318; OKLCH L 70.4% C 0.190 H 310.2°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#C478F6
RGBrgb(196, 120, 246)
HSLhsl(276, 88%, 72%)
HSVhsv(276, 51%, 96%)
CMYKcmyk(20.3%, 51.2%, 0%, 3.5%)
CIE-LABlab(63.20, 51.52, -51.76)
CIE-LCHlch(63.20, 73.03, 314.86°)
OKLaboklab(70.42% 0.1226 -0.1448)
OKLCHoklch(70.42% 0.19 310.2)
XYZxyz(46.1129, 31.8233, 90.8842)
Luminance0.3182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C478F6 #AAF678
analogous
#8578F6 #C478F6 #F678E9
triadic
#C478F6 #F6C478 #78F6C4
tetradic
#C478F6 #F68578 #AAF678 #78E9F6
square
#C478F6 #F68578 #AAF678 #78E9F6
split-complementary
#C478F6 #E9F678 #78F685
monochromatic
#900FE4 #AB3FF2 #C478F6 #DDB1FA #F2E2FD

Accessibility & contrast

On white

2.85
#C478F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#C478F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C478F6
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C478F6#FFFFFF#000000##000000
##C478F61.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5695FA
Deuteranopia (green-blind)
#6D9AF3
Tritanopia (blue-blind)
#BE8DAC
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #c478f6;
/* rgb */ color: rgb(196, 120, 246);
/* oklch */ color: oklch(70.4% 0.190 310.2);
Tailwind
colors: {
  custom: {
    50: '#d8a1fa',
    500: '#c478f6',
    950: '#000000',
  },
}
SCSS
$custom: #c478f6;
$custom-light: #d8a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#c478f6",
  "rgb": {
    "r": 196,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 276.19,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.70424,
    "c": 0.18977,
    "h": 310.2
  },
  "luminance": 0.31823
}

Semantic roles & 50–950 ramp

primary
#C478F6
secondary
#E2F5D5
accent
#E4015B
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C478F6

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

Preview Lab → · Contrast checker → · Palette generator →

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