#C28DF2#C28DF2

#C28DF2 is a light, vivid violet. Relative luminance 0.369; OKLCH L 73.3% C 0.151 H 307.2°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#C28DF2
RGBrgb(194, 141, 242)
HSLhsl(271, 80%, 75%)
HSVhsv(271, 42%, 95%)
CMYKcmyk(19.8%, 41.7%, 0%, 5.1%)
CIE-LABlab(67.22, 38.88, -43.23)
CIE-LCHlch(67.22, 58.14, 311.97°)
OKLaboklab(73.32% 0.0913 -0.1202)
OKLCHoklch(73.32% 0.151 307.2)
XYZxyz(47.7969, 36.9303, 88.5975)
Luminance0.3693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28DF2 #BDF28D
analogous
#8F8DF2 #C28DF2 #F28DF0
triadic
#C28DF2 #F2C28D #8DF2C2
tetradic
#C28DF2 #F28F8D #BDF28D #8DF0F2
square
#C28DF2 #F28F8D #BDF28D #8DF0F2
split-complementary
#C28DF2 #F0F28D #8DF28F
monochromatic
#871FE5 #A556EC #C28DF2 #DFC4F8 #F0E4FC

Accessibility & contrast

On white

2.50
#C28DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#C28DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28DF2
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28DF2#FFFFFF#000000##000000
##C28DF21.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A2F6
Deuteranopia (green-blind)
#82A4EF
Tritanopia (blue-blind)
#BB9DB4
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #c28df2;
/* rgb */ color: rgb(194, 141, 242);
/* oklch */ color: oklch(73.3% 0.151 307.2);
Tailwind
colors: {
  custom: {
    50: '#d6aff7',
    500: '#c28df2',
    950: '#000000',
  },
}
SCSS
$custom: #c28df2;
$custom-light: #d6aff7;
$custom-dark: #000000;
JSON
{
  "hex": "#c28df2",
  "rgb": {
    "r": 194,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 271.485,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73319,
    "c": 0.15095,
    "h": 307.2
  },
  "luminance": 0.3693
}

Semantic roles & 50–950 ramp

primary
#C28DF2
secondary
#E5F4D7
accent
#DC0A6E
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #C28DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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