#C28AF2#C28AF2

#C28AF2 is a light, vivid violet. Relative luminance 0.361; OKLCH L 72.8% C 0.156 H 307.8°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#C28AF2
RGBrgb(194, 138, 242)
HSLhsl(272, 80%, 75%)
HSVhsv(272, 43%, 95%)
CMYKcmyk(19.8%, 43%, 0%, 5.1%)
CIE-LABlab(66.56, 40.52, -44.26)
CIE-LCHlch(66.56, 60.01, 312.47°)
OKLaboklab(72.82% 0.0955 -0.1232)
OKLCHoklch(72.82% 0.156 307.8)
XYZxyz(47.3605, 36.0576, 88.4520)
Luminance0.3606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28AF2 #BAF28A
analogous
#8E8AF2 #C28AF2 #F28AEE
triadic
#C28AF2 #F2C28A #8AF2C2
tetradic
#C28AF2 #F28E8A #BAF28A #8AEEF2
square
#C28AF2 #F28E8A #BAF28A #8AEEF2
split-complementary
#C28AF2 #EEF28A #8AF28E
monochromatic
#891CE6 #A553EC #C28AF2 #DFC1F8 #F1E3FC

Accessibility & contrast

On white

2.56
#C28AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#C28AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28AF2
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28AF2#FFFFFF#000000##000000
##C28AF21.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A0F6
Deuteranopia (green-blind)
#80A3EF
Tritanopia (blue-blind)
#BB9AB3
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c28af2;
/* rgb */ color: rgb(194, 138, 242);
/* oklch */ color: oklch(72.8% 0.156 307.8);
Tailwind
colors: {
  custom: {
    50: '#d6adf7',
    500: '#c28af2',
    950: '#000000',
  },
}
SCSS
$custom: #c28af2;
$custom-light: #d6adf7;
$custom-dark: #000000;
JSON
{
  "hex": "#c28af2",
  "rgb": {
    "r": 194,
    "g": 138,
    "b": 242
  },
  "hsl": {
    "h": 272.308,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72823,
    "c": 0.15585,
    "h": 307.8
  },
  "luminance": 0.36057
}

Semantic roles & 50–950 ramp

primary
#C28AF2
secondary
#E4F4D7
accent
#DC096B
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #C28AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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