#C28AFA#C28AFA

#C28AFA is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.2% C 0.165 H 305.8°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#C28AFA
RGBrgb(194, 138, 250)
HSLhsl(270, 92%, 76%)
HSVhsv(270, 45%, 98%)
CMYKcmyk(22.4%, 44.8%, 0%, 2%)
CIE-LABlab(66.94, 42.31, -48.06)
CIE-LCHlch(66.94, 64.03, 311.36°)
OKLaboklab(73.22% 0.0967 -0.1342)
OKLCHoklch(73.22% 0.165 305.8)
XYZxyz(48.5884, 36.5487, 94.9189)
Luminance0.3655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28AFA #C2FA8A
analogous
#8A8AFA #C28AFA #FA8AFA
triadic
#C28AFA #FAC28A #8AFAC2
tetradic
#C28AFA #FA8A8A #C2FA8A #8AFAFA
square
#C28AFA #FA8A8A #C2FA8A #8AFAFA
split-complementary
#C28AFA #FAFA8A #8AFA8A
monochromatic
#8515F5 #A34FF7 #C28AFA #E1C5FD #F0E2FE

Accessibility & contrast

On white

2.53
#C28AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#C28AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28AFA
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28AFA#FFFFFF#000000##000000
##C28AFA1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA1FE
Deuteranopia (green-blind)
#7BA3F7
Tritanopia (blue-blind)
#B99DB6
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #c28afa;
/* rgb */ color: rgb(194, 138, 250);
/* oklch */ color: oklch(73.2% 0.165 305.8);
Tailwind
colors: {
  custom: {
    50: '#d6adfc',
    500: '#c28afa',
    950: '#000000',
  },
}
SCSS
$custom: #c28afa;
$custom-light: #d6adfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c28afa",
  "rgb": {
    "r": 194,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 270,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.73225,
    "c": 0.1654,
    "h": 305.8
  },
  "luminance": 0.36548
}

Semantic roles & 50–950 ramp

primary
#C28AFA
secondary
#E6F6D5
accent
#E60073
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C28AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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