#C28AF7#C28AF7

#C28AF7 is a light, vivid violet. Relative luminance 0.364; OKLCH L 73.1% C 0.162 H 306.5°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#C28AF7
RGBrgb(194, 138, 247)
HSLhsl(271, 87%, 75%)
HSVhsv(271, 44%, 97%)
CMYKcmyk(21.5%, 44.1%, 0%, 3.1%)
CIE-LABlab(66.80, 41.63, -46.64)
CIE-LCHlch(66.80, 62.52, 311.75°)
OKLaboklab(73.07% 0.0963 -0.1301)
OKLCHoklch(73.07% 0.162 306.5)
XYZxyz(48.1217, 36.3621, 92.4611)
Luminance0.3636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28AF7 #BFF78A
analogous
#8B8AF7 #C28AF7 #F78AF5
triadic
#C28AF7 #F7C28A #8AF7C2
tetradic
#C28AF7 #F78B8A #BFF78A #8AF5F7
square
#C28AF7 #F78B8A #BFF78A #8AF5F7
split-complementary
#C28AF7 #F5F78A #8AF78B
monochromatic
#8617EF #A451F3 #C28AF7 #E0C3FB #F0E2FD

Accessibility & contrast

On white

2.54
#C28AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#C28AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28AF7
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28AF7#FFFFFF#000000##000000
##C28AF71.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0FB
Deuteranopia (green-blind)
#7DA3F4
Tritanopia (blue-blind)
#BA9CB5
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c28af7;
/* rgb */ color: rgb(194, 138, 247);
/* oklch */ color: oklch(73.1% 0.162 306.5);
Tailwind
colors: {
  custom: {
    50: '#d6adfa',
    500: '#c28af7',
    950: '#000000',
  },
}
SCSS
$custom: #c28af7;
$custom-light: #d6adfa;
$custom-dark: #000000;
JSON
{
  "hex": "#c28af7",
  "rgb": {
    "r": 194,
    "g": 138,
    "b": 247
  },
  "hsl": {
    "h": 270.826,
    "s": 87.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73072,
    "c": 0.16182,
    "h": 306.5
  },
  "luminance": 0.36362
}

Semantic roles & 50–950 ramp

primary
#C28AF7
secondary
#E5F5D6
accent
#E40270
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C28AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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