#C28CEC#C28CEC

#C28CEC is a light, vivid violet. Relative luminance 0.363; OKLCH L 72.9% C 0.145 H 309.1°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#C28CEC
RGBrgb(194, 140, 236)
HSLhsl(274, 72%, 74%)
HSVhsv(274, 41%, 93%)
CMYKcmyk(17.8%, 40.7%, 0%, 7.5%)
CIE-LABlab(66.73, 38.11, -40.70)
CIE-LCHlch(66.73, 55.75, 313.12°)
OKLaboklab(72.86% 0.0916 -0.1129)
OKLCHoklch(72.86% 0.145 309.1)
XYZxyz(46.7637, 36.2822, 83.8803)
Luminance0.3628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28CEC #B6EC8C
analogous
#928CEC #C28CEC #EC8CE6
triadic
#C28CEC #ECC28C #8CECC2
tetradic
#C28CEC #EC928C #B6EC8C #8CE6EC
square
#C28CEC #EC928C #B6EC8C #8CE6EC
split-complementary
#C28CEC #E6EC8C #8CEC92
monochromatic
#8A24DA #A657E3 #C28CEC #DEC1F5 #F1E5FB

Accessibility & contrast

On white

2.54
#C28CEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#C28CEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28CEC
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28CEC#FFFFFF#000000##000000
##C28CEC1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A0F0
Deuteranopia (green-blind)
#85A3E9
Tritanopia (blue-blind)
#BD9BB1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c28cec;
/* rgb */ color: rgb(194, 140, 236);
/* oklch */ color: oklch(72.9% 0.145 309.1);
Tailwind
colors: {
  custom: {
    50: '#d6aef2',
    500: '#c28cec',
    950: '#000000',
  },
}
SCSS
$custom: #c28cec;
$custom-light: #d6aef2;
$custom-dark: #000000;
JSON
{
  "hex": "#c28cec",
  "rgb": {
    "r": 194,
    "g": 140,
    "b": 236
  },
  "hsl": {
    "h": 273.75,
    "s": 71.642,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72863,
    "c": 0.1454,
    "h": 309.1
  },
  "luminance": 0.36282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C28CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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