#C28DEC#C28DEC

#C28DEC is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.0% C 0.144 H 308.9°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#C28DEC
RGBrgb(194, 141, 236)
HSLhsl(273, 71%, 74%)
HSVhsv(273, 40%, 93%)
CMYKcmyk(17.8%, 40.3%, 0%, 7.5%)
CIE-LABlab(66.96, 37.56, -40.35)
CIE-LCHlch(66.96, 55.13, 312.95°)
OKLaboklab(73.03% 0.0902 -0.1119)
OKLCHoklch(73.03% 0.144 308.9)
XYZxyz(46.9105, 36.5758, 83.9292)
Luminance0.3658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28DEC #B7EC8D
analogous
#938DEC #C28DEC #EC8DE7
triadic
#C28DEC #ECC28D #8DECC2
tetradic
#C28DEC #EC938D #B7EC8D #8DE7EC
square
#C28DEC #EC938D #B7EC8D #8DE7EC
split-complementary
#C28DEC #E7EC8D #8DEC93
monochromatic
#8A24DA #A659E3 #C28DEC #DEC1F5 #F1E5FB

Accessibility & contrast

On white

2.53
#C28DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#C28DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28DEC
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28DEC#FFFFFF#000000##000000
##C28DEC1.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A1F0
Deuteranopia (green-blind)
#85A4E9
Tritanopia (blue-blind)
#BD9BB1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #c28dec;
/* rgb */ color: rgb(194, 141, 236);
/* oklch */ color: oklch(73.0% 0.144 308.9);
Tailwind
colors: {
  custom: {
    50: '#d6aff2',
    500: '#c28dec',
    950: '#000000',
  },
}
SCSS
$custom: #c28dec;
$custom-light: #d6aff2;
$custom-dark: #000000;
JSON
{
  "hex": "#c28dec",
  "rgb": {
    "r": 194,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 273.474,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73031,
    "c": 0.14373,
    "h": 308.9
  },
  "luminance": 0.36575
}

Semantic roles & 50–950 ramp

primary
#C28DEC
secondary
#E4F2D9
accent
#D31268
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #C28DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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