#AF5FE5#AF5FE5

#AF5FE5 is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 63.6% C 0.202 H 309.4°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF5FE5
RGBrgb(175, 95, 229)
HSLhsl(276, 72%, 64%)
HSVhsv(276, 59%, 90%)
CMYKcmyk(23.6%, 58.5%, 0%, 10.2%)
CIE-LABlab(55.03, 55.32, -55.46)
CIE-LCHlch(55.03, 78.33, 314.93°)
OKLaboklab(63.59% 0.128 -0.1561)
OKLCHoklch(63.59% 0.202 309.4)
XYZxyz(35.9115, 22.9561, 76.6527)
Luminance0.2296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FE5 #95E55F
analogous
#6C5FE5 #AF5FE5 #E55FD8
triadic
#AF5FE5 #E5AF5F #5FE5AF
tetradic
#AF5FE5 #E56C5F #95E55F #5FD8E5
square
#AF5FE5 #E56C5F #95E55F #5FD8E5
split-complementary
#AF5FE5 #D8E55F #5FE56C
monochromatic
#731CAD #952ADC #AF5FE5 #C994EE #E4C8F6

Accessibility & contrast

On white

3.76
#AF5FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#AF5FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FE5
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FE5#FFFFFF#000000##000000
##AF5FE51.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C80E9
Deuteranopia (green-blind)
#4F85E2
Tritanopia (blue-blind)
#A87899
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5fe5;
/* rgb */ color: rgb(175, 95, 229);
/* oklch */ color: oklch(63.6% 0.202 309.4);
Tailwind
colors: {
  custom: {
    50: '#ca90ee',
    500: '#af5fe5',
    950: '#000000',
  },
}
SCSS
$custom: #af5fe5;
$custom-light: #ca90ee;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fe5",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 229
  },
  "hsl": {
    "h": 275.821,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63592,
    "c": 0.20187,
    "h": 309.4
  },
  "luminance": 0.22956
}

Semantic roles & 50–950 ramp

primary
#AF5FE5
secondary
#CBE8B8
accent
#D41160
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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