#C28BF7#C28BF7

#C28BF7 is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.2% C 0.160 H 306.3°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#C28BF7
RGBrgb(194, 139, 247)
HSLhsl(271, 87%, 76%)
HSVhsv(271, 44%, 97%)
CMYKcmyk(21.5%, 43.7%, 0%, 3.1%)
CIE-LABlab(67.01, 41.09, -46.30)
CIE-LCHlch(67.01, 61.90, 311.59°)
OKLaboklab(73.24% 0.0949 -0.1291)
OKLCHoklch(73.24% 0.16 306.3)
XYZxyz(48.2659, 36.6503, 92.5092)
Luminance0.3665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28BF7 #C0F78B
analogous
#8C8BF7 #C28BF7 #F78BF6
triadic
#C28BF7 #F7C28B #8BF7C2
tetradic
#C28BF7 #F78C8B #C0F78B #8BF6F7
square
#C28BF7 #F78C8B #C0F78B #8BF6F7
split-complementary
#C28BF7 #F6F78B #8BF78C
monochromatic
#8618EF #A452F3 #C28BF7 #E0C4FB #F0E2FD

Accessibility & contrast

On white

2.52
#C28BF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#C28BF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C28BF7
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C28BF7#FFFFFF#000000##000000
##C28BF71.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A1FB
Deuteranopia (green-blind)
#7EA4F4
Tritanopia (blue-blind)
#BA9DB5
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #c28bf7;
/* rgb */ color: rgb(194, 139, 247);
/* oklch */ color: oklch(73.2% 0.160 306.3);
Tailwind
colors: {
  custom: {
    50: '#d6aefa',
    500: '#c28bf7',
    950: '#000000',
  },
}
SCSS
$custom: #c28bf7;
$custom-light: #d6aefa;
$custom-dark: #000000;
JSON
{
  "hex": "#c28bf7",
  "rgb": {
    "r": 194,
    "g": 139,
    "b": 247
  },
  "hsl": {
    "h": 270.556,
    "s": 87.097,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73236,
    "c": 0.16021,
    "h": 306.3
  },
  "luminance": 0.3665
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C28BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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