#C28FF2#C28FF2

#C28FF2 is a light, vivid violet. Relative luminance 0.375; OKLCH L 73.7% C 0.148 H 306.8°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#C28FF2
RGBrgb(194, 143, 242)
HSLhsl(271, 79%, 75%)
HSVhsv(271, 41%, 95%)
CMYKcmyk(19.8%, 40.9%, 0%, 5.1%)
CIE-LABlab(67.67, 37.79, -42.53)
CIE-LCHlch(67.67, 56.89, 311.62°)
OKLaboklab(73.65% 0.0886 -0.1182)
OKLCHoklch(73.65% 0.148 306.8)
XYZxyz(48.0944, 37.5255, 88.6967)
Luminance0.3752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28FF2 #BFF28F
analogous
#908FF2 #C28FF2 #F28FF1
triadic
#C28FF2 #F2C28F #8FF2C2
tetradic
#C28FF2 #F2908F #BFF28F #8FF1F2
square
#C28FF2 #F2908F #BFF28F #8FF1F2
split-complementary
#C28FF2 #F1F28F #8FF290
monochromatic
#8621E5 #A458EC #C28FF2 #E0C6F8 #F0E4FC

Accessibility & contrast

On white

2.47
#C28FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#C28FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28FF2
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28FF2#FFFFFF#000000##000000
##C28FF21.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A3F6
Deuteranopia (green-blind)
#84A5EF
Tritanopia (blue-blind)
#BB9FB5
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #c28ff2;
/* rgb */ color: rgb(194, 143, 242);
/* oklch */ color: oklch(73.7% 0.148 306.8);
Tailwind
colors: {
  custom: {
    50: '#d6b0f6',
    500: '#c28ff2',
    950: '#000000',
  },
}
SCSS
$custom: #c28ff2;
$custom-light: #d6b0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#c28ff2",
  "rgb": {
    "r": 194,
    "g": 143,
    "b": 242
  },
  "hsl": {
    "h": 270.909,
    "s": 79.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73654,
    "c": 0.14767,
    "h": 306.8
  },
  "luminance": 0.37525
}

Semantic roles & 50–950 ramp

primary
#C28FF2
secondary
#E5F4D7
accent
#DB0A70
background
#FDFAFF
surface
#FAF5FE
border
#D3CFD6
text
#141017
muted
#837F85

Preview Lab

Preview with #C28FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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