#AF5CE8#AF5CE8

#AF5CE8 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.4% C 0.209 H 309.0°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AF5CE8
RGBrgb(175, 92, 232)
HSLhsl(276, 75%, 64%)
HSVhsv(276, 60%, 91%)
CMYKcmyk(24.6%, 60.3%, 0%, 9%)
CIE-LABlab(54.65, 57.46, -57.74)
CIE-LCHlch(54.65, 81.46, 314.86°)
OKLaboklab(63.38% 0.1316 -0.1628)
OKLCHoklch(63.38% 0.209 309)
XYZxyz(36.0689, 22.5950, 78.7895)
Luminance0.2259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CE8 #95E85C
analogous
#695CE8 #AF5CE8 #E85CDB
triadic
#AF5CE8 #E8AF5C #5CE8AF
tetradic
#AF5CE8 #E8695C #95E85C #5CDBE8
square
#AF5CE8 #E8695C #95E85C #5CDBE8
split-complementary
#AF5CE8 #DBE85C #5CE869
monochromatic
#7319B1 #9526E0 #AF5CE8 #C992F0 #E4C7F7

Accessibility & contrast

On white

3.81
#AF5CE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#AF5CE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CE8
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CE8#FFFFFF#000000##000000
##AF5CE81.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D7FEC
Deuteranopia (green-blind)
#4884E5
Tritanopia (blue-blind)
#A7779A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5ce8;
/* rgb */ color: rgb(175, 92, 232);
/* oklch */ color: oklch(63.4% 0.209 309.0);
Tailwind
colors: {
  custom: {
    50: '#cb8ef0',
    500: '#af5ce8',
    950: '#000000',
  },
}
SCSS
$custom: #af5ce8;
$custom-light: #cb8ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ce8",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 232
  },
  "hsl": {
    "h": 275.571,
    "s": 75.269,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63376,
    "c": 0.20933,
    "h": 309
  },
  "luminance": 0.22594
}

Semantic roles & 50–950 ramp

primary
#AF5CE8
secondary
#CBE9B7
accent
#D70E60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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