#AF5CE6#AF5CE6

#AF5CE6 is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.3% C 0.207 H 309.4°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF5CE6
RGBrgb(175, 92, 230)
HSLhsl(276, 73%, 63%)
HSVhsv(276, 60%, 90%)
CMYKcmyk(23.9%, 60%, 0%, 9.8%)
CIE-LABlab(54.53, 57.02, -56.81)
CIE-LCHlch(54.53, 80.49, 315.11°)
OKLaboklab(63.25% 0.1316 -0.16)
OKLCHoklch(63.25% 0.207 309.4)
XYZxyz(35.7865, 22.4821, 77.3018)
Luminance0.2248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CE6 #93E65C
analogous
#6A5CE6 #AF5CE6 #E65CD8
triadic
#AF5CE6 #E6AF5C #5CE6AF
tetradic
#AF5CE6 #E66A5C #93E65C #5CD8E6
square
#AF5CE6 #E66A5C #93E65C #5CD8E6
split-complementary
#AF5CE6 #D8E65C #5CE66A
monochromatic
#731BAD #9527DE #AF5CE6 #C991EE #E3C6F6

Accessibility & contrast

On white

3.82
#AF5CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#AF5CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CE6
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CE6#FFFFFF#000000##000000
##AF5CE61.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#227FEA
Deuteranopia (green-blind)
#4A84E3
Tritanopia (blue-blind)
#A77699
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5ce6;
/* rgb */ color: rgb(175, 92, 230);
/* oklch */ color: oklch(63.3% 0.207 309.4);
Tailwind
colors: {
  custom: {
    50: '#ca8eef',
    500: '#af5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #af5ce6;
$custom-light: #ca8eef;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ce6",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 276.087,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63252,
    "c": 0.20722,
    "h": 309.4
  },
  "luminance": 0.22481
}

Semantic roles & 50–950 ramp

primary
#AF5CE6
secondary
#CAE8B6
accent
#D6105F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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