#C28BF5#C28BF5

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

Color values

HEX#C28BF5
RGBrgb(194, 139, 245)
HSLhsl(271, 84%, 75%)
HSVhsv(271, 43%, 96%)
CMYKcmyk(20.8%, 43.3%, 0%, 3.9%)
CIE-LABlab(66.92, 40.64, -45.35)
CIE-LCHlch(66.92, 60.89, 311.87°)
OKLaboklab(73.14% 0.0946 -0.1263)
OKLCHoklch(73.14% 0.158 306.8)
XYZxyz(47.9589, 36.5276, 90.8925)
Luminance0.3653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C28BF5 #BEF58B
analogous
#8D8BF5 #C28BF5 #F58BF3
triadic
#C28BF5 #F5C28B #8BF5C2
tetradic
#C28BF5 #F58D8B #BEF58B #8BF3F5
square
#C28BF5 #F58D8B #BEF58B #8BF3F5
split-complementary
#C28BF5 #F3F58B #8BF58D
monochromatic
#871AEB #A453F0 #C28BF5 #E0C3FA #F0E3FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C28BF5#FFFFFF#000000##000000
##C28BF51.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)
#72A1F9
Deuteranopia (green-blind)
#7FA3F2
Tritanopia (blue-blind)
#BB9CB4
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #c28bf5;
/* rgb */ color: rgb(194, 139, 245);
/* oklch */ color: oklch(73.1% 0.158 306.8);
Tailwind
colors: {
  custom: {
    50: '#d6aef9',
    500: '#c28bf5',
    950: '#000000',
  },
}
SCSS
$custom: #c28bf5;
$custom-light: #d6aef9;
$custom-dark: #000000;
JSON
{
  "hex": "#c28bf5",
  "rgb": {
    "r": 194,
    "g": 139,
    "b": 245
  },
  "hsl": {
    "h": 271.132,
    "s": 84.127,
    "l": 75.294
  },
  "oklch": {
    "l": 0.73136,
    "c": 0.1578,
    "h": 306.8
  },
  "luminance": 0.36527
}

Semantic roles & 50–950 ramp

primary
#C28BF5
secondary
#E5F5D6
accent
#E1056F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #C28BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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