#AF5CEA#AF5CEA

#AF5CEA is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.5% C 0.211 H 308.5°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF5CEA
RGBrgb(175, 92, 234)
HSLhsl(275, 77%, 64%)
HSVhsv(275, 61%, 92%)
CMYKcmyk(25.2%, 60.7%, 0%, 8.2%)
CIE-LABlab(54.77, 57.90, -58.67)
CIE-LCHlch(54.77, 82.43, 314.62°)
OKLaboklab(63.5% 0.1316 -0.1655)
OKLCHoklch(63.5% 0.211 308.5)
XYZxyz(36.3546, 22.7093, 80.2941)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CEA #97EA5C
analogous
#685CEA #AF5CEA #EA5CDE
triadic
#AF5CEA #EAAF5C #5CEAAF
tetradic
#AF5CEA #EA685C #97EA5C #5CDEEA
square
#AF5CEA #EA685C #97EA5C #5CDEEA
split-complementary
#AF5CEA #DEEA5C #5CEA68
monochromatic
#7317B4 #9426E3 #AF5CEA #CA92F1 #E4C8F8

Accessibility & contrast

On white

3.79
#AF5CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#AF5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CEA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CEA#FFFFFF#000000##000000
##AF5CEA1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1880EE
Deuteranopia (green-blind)
#4684E7
Tritanopia (blue-blind)
#A6789B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5cea;
/* rgb */ color: rgb(175, 92, 234);
/* oklch */ color: oklch(63.5% 0.211 308.5);
Tailwind
colors: {
  custom: {
    50: '#cb8ef1',
    500: '#af5cea',
    950: '#000000',
  },
}
SCSS
$custom: #af5cea;
$custom-light: #cb8ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cea",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 275.07,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.635,
    "c": 0.21143,
    "h": 308.5
  },
  "luminance": 0.22709
}

Semantic roles & 50–950 ramp

primary
#AF5CEA
secondary
#CDEAB8
accent
#D90C61
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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