#C28DFE#C28DFE

#C28DFE is a light, vivid violet. Relative luminance 0.377; OKLCH L 73.9% C 0.165 H 304.3°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#C28DFE
RGBrgb(194, 141, 254)
HSLhsl(268, 98%, 77%)
HSVhsv(268, 44%, 100%)
CMYKcmyk(23.6%, 44.5%, 0%, 0.4%)
CIE-LABlab(67.78, 41.58, -48.92)
CIE-LCHlch(67.78, 64.20, 310.37°)
OKLaboklab(73.92% 0.0932 -0.1367)
OKLCHoklch(73.92% 0.165 304.3)
XYZxyz(49.6586, 37.6750, 98.4026)
Luminance0.3767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28DFE #C9FE8D
analogous
#8D90FE #C28DFE #FB8DFE
triadic
#C28DFE #FEC28D #8DFEC2
tetradic
#C28DFE #FE8D90 #C9FE8D #8DFEFB
square
#C28DFE #FE8D90 #C9FE8D #8DFEFB
split-complementary
#C28DFE #FEFB8D #90FE8D
monochromatic
#8114FD #A250FD #C28DFE #E2CAFF #EFE1FF

Accessibility & contrast

On white

2.46
#C28DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#C28DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28DFE
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28DFE#FFFFFF#000000##000000
##C28DFE1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA4FF
Deuteranopia (green-blind)
#7CA5FB
Tritanopia (blue-blind)
#B8A0B9
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #c28dfe;
/* rgb */ color: rgb(194, 141, 254);
/* oklch */ color: oklch(73.9% 0.165 304.3);
Tailwind
colors: {
  custom: {
    50: '#d6afff',
    500: '#c28dfe',
    950: '#000000',
  },
}
SCSS
$custom: #c28dfe;
$custom-light: #d6afff;
$custom-dark: #000000;
JSON
{
  "hex": "#c28dfe",
  "rgb": {
    "r": 194,
    "g": 141,
    "b": 254
  },
  "hsl": {
    "h": 268.142,
    "s": 98.261,
    "l": 77.451
  },
  "oklch": {
    "l": 0.73919,
    "c": 0.16545,
    "h": 304.3
  },
  "luminance": 0.37675
}

Semantic roles & 50–950 ramp

primary
#C28DFE
secondary
#E7F7D4
accent
#E6007A
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #C28DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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