#AF5FE4#AF5FE4

#AF5FE4 is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.5% C 0.201 H 309.6°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF5FE4
RGBrgb(175, 95, 228)
HSLhsl(276, 71%, 63%)
HSVhsv(276, 58%, 89%)
CMYKcmyk(23.2%, 58.3%, 0%, 10.6%)
CIE-LABlab(54.97, 55.10, -54.99)
CIE-LCHlch(54.97, 77.84, 315.06°)
OKLaboklab(63.53% 0.128 -0.1547)
OKLCHoklch(63.53% 0.201 309.6)
XYZxyz(35.7723, 22.9005, 75.9195)
Luminance0.2290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FE4 #94E45F
analogous
#6C5FE4 #AF5FE4 #E45FD7
triadic
#AF5FE4 #E4AF5F #5FE4AF
tetradic
#AF5FE4 #E46C5F #94E45F #5FD7E4
square
#AF5FE4 #E46C5F #94E45F #5FD7E4
split-complementary
#AF5FE4 #D7E45F #5FE46C
monochromatic
#731DAC #952BDB #AF5FE4 #C993ED #E3C8F6

Accessibility & contrast

On white

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

On black

5.58
#AF5FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FE4
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FE4#FFFFFF#000000##000000
##AF5FE41.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af5fe4;
/* rgb */ color: rgb(175, 95, 228);
/* oklch */ color: oklch(63.5% 0.201 309.6);
Tailwind
colors: {
  custom: {
    50: '#ca90ed',
    500: '#af5fe4',
    950: '#000000',
  },
}
SCSS
$custom: #af5fe4;
$custom-light: #ca90ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fe4",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 228
  },
  "hsl": {
    "h": 276.09,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63532,
    "c": 0.20081,
    "h": 309.6
  },
  "luminance": 0.229
}

Semantic roles & 50–950 ramp

primary
#AF5FE4
secondary
#CBE7B8
accent
#D3125F
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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