#AF4AE8#AF4AE8

#AF4AE8 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.2% C 0.233 H 310.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF4AE8
RGBrgb(175, 74, 232)
HSLhsl(278, 77%, 60%)
HSVhsv(278, 68%, 91%)
CMYKcmyk(24.6%, 68.1%, 0%, 9%)
CIE-LABlab(51.65, 65.71, -62.56)
CIE-LCHlch(51.65, 90.73, 316.41°)
OKLaboklab(61.21% 0.1517 -0.1768)
OKLCHoklch(61.21% 0.233 310.6)
XYZxyz(34.6907, 19.8385, 78.3300)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AE8 #83E84A
analogous
#604AE8 #AF4AE8 #E84AD2
triadic
#AF4AE8 #E8AF4A #4AE8AF
tetradic
#AF4AE8 #E8604A #83E84A #4AD2E8
square
#AF4AE8 #E8604A #83E84A #4AD2E8
split-complementary
#AF4AE8 #D2E84A #4AE860
monochromatic
#7015A3 #951CD9 #AF4AE8 #C780EF #DFB7F6

Accessibility & contrast

On white

4.23
#AF4AE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AF4AE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4AE8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AE8#FFFFFF#000000##000000
##AF4AE81.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077ED
Deuteranopia (green-blind)
#327DE5
Tritanopia (blue-blind)
#A76C94
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4ae8;
/* rgb */ color: rgb(175, 74, 232);
/* oklch */ color: oklch(61.2% 0.233 310.6);
Tailwind
colors: {
  custom: {
    50: '#cb84f0',
    500: '#af4ae8',
    950: '#000000',
  },
}
SCSS
$custom: #af4ae8;
$custom-light: #cb84f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ae8",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 232
  },
  "hsl": {
    "h": 278.354,
    "s": 77.451,
    "l": 60
  },
  "oklch": {
    "l": 0.61214,
    "c": 0.23296,
    "h": 310.6
  },
  "luminance": 0.19838
}

Semantic roles & 50–950 ramp

primary
#AF4AE8
secondary
#BEE5A8
accent
#F43479
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF4AE8

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

Preview Lab → · Contrast checker → · Palette generator →

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