#AF59EF#AF59EF

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

Color values

HEX#AF59EF
RGBrgb(175, 89, 239)
HSLhsl(274, 82%, 64%)
HSVhsv(274, 63%, 94%)
CMYKcmyk(26.8%, 62.8%, 0%, 6.3%)
CIE-LABlab(54.54, 60.45, -61.83)
CIE-LCHlch(54.54, 86.47, 314.35°)
OKLaboklab(63.43% 0.1349 -0.1748)
OKLCHoklch(63.43% 0.221 307.7)
XYZxyz(36.8283, 22.4912, 84.0457)
Luminance0.2249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF59EF #99EF59
analogous
#6459EF #AF59EF #EF59E4
triadic
#AF59EF #EFAF59 #59EFAF
tetradic
#AF59EF #EF6459 #99EF59 #59E4EF
square
#AF59EF #EF6459 #99EF59 #59E4EF
split-complementary
#AF59EF #E4EF59 #59EF64
monochromatic
#7312BC #9421EA #AF59EF #CA91F4 #E5C9FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF59EF#FFFFFF#000000##000000
##AF59EF1.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)
#007FF4
Deuteranopia (green-blind)
#3D83EC
Tritanopia (blue-blind)
#A5789C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af59ef;
/* rgb */ color: rgb(175, 89, 239);
/* oklch */ color: oklch(63.4% 0.221 307.7);
Tailwind
colors: {
  custom: {
    50: '#cb8df5',
    500: '#af59ef',
    950: '#000000',
  },
}
SCSS
$custom: #af59ef;
$custom-light: #cb8df5;
$custom-dark: #000000;
JSON
{
  "hex": "#af59ef",
  "rgb": {
    "r": 175,
    "g": 89,
    "b": 239
  },
  "hsl": {
    "h": 274.4,
    "s": 82.418,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63433,
    "c": 0.22076,
    "h": 307.7
  },
  "luminance": 0.22491
}

Semantic roles & 50–950 ramp

primary
#AF59EF
secondary
#CEECB8
accent
#DF0763
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF59EF

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

Preview Lab → · Contrast checker → · Palette generator →

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