#C28DF7#C28DF7

#C28DF7 is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.6% C 0.157 H 306.0°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#C28DF7
RGBrgb(194, 141, 247)
HSLhsl(270, 87%, 76%)
HSVhsv(270, 43%, 97%)
CMYKcmyk(21.5%, 42.9%, 0%, 3.1%)
CIE-LABlab(67.45, 40.00, -45.61)
CIE-LCHlch(67.45, 60.66, 311.25°)
OKLaboklab(73.57% 0.0922 -0.1271)
OKLCHoklch(73.57% 0.157 306)
XYZxyz(48.5581, 37.2348, 92.6066)
Luminance0.3723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28DF7 #C2F78D
analogous
#8D8DF7 #C28DF7 #F78DF7
triadic
#C28DF7 #F7C28D #8DF7C2
tetradic
#C28DF7 #F78D8D #C2F78D #8DF7F7
square
#C28DF7 #F78D8D #C2F78D #8DF7F7
split-complementary
#C28DF7 #F7F78D #8DF78D
monochromatic
#851BEF #A354F3 #C28DF7 #E1C6FB #F0E2FD

Accessibility & contrast

On white

2.49
#C28DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#C28DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28DF7
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28DF7#FFFFFF#000000##000000
##C28DF71.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A2FB
Deuteranopia (green-blind)
#80A5F4
Tritanopia (blue-blind)
#BA9EB6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #c28df7;
/* rgb */ color: rgb(194, 141, 247);
/* oklch */ color: oklch(73.6% 0.157 306.0);
Tailwind
colors: {
  custom: {
    50: '#d6affa',
    500: '#c28df7',
    950: '#000000',
  },
}
SCSS
$custom: #c28df7;
$custom-light: #d6affa;
$custom-dark: #000000;
JSON
{
  "hex": "#c28df7",
  "rgb": {
    "r": 194,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 270,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.73566,
    "c": 0.15698,
    "h": 306
  },
  "luminance": 0.37234
}

Semantic roles & 50–950 ramp

primary
#C28DF7
secondary
#E6F5D6
accent
#E30273
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #C28DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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