#AF4AED#AF4AED

#AF4AED is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.6% C 0.238 H 309.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF4AED
RGBrgb(175, 74, 237)
HSLhsl(277, 82%, 61%)
HSVhsv(277, 69%, 93%)
CMYKcmyk(26.2%, 68.8%, 0%, 7.1%)
CIE-LABlab(51.98, 66.76, -64.85)
CIE-LCHlch(51.98, 93.07, 315.83°)
OKLaboklab(61.55% 0.1511 -0.1835)
OKLCHoklch(61.55% 0.238 309.5)
XYZxyz(35.4110, 20.1266, 82.1237)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AED #88ED4A
analogous
#5D4AED #AF4AED #ED4AD9
triadic
#AF4AED #EDAF4A #4AEDAF
tetradic
#AF4AED #ED5D4A #88ED4A #4AD9ED
square
#AF4AED #ED5D4A #88ED4A #4AD9ED
split-complementary
#AF4AED #D9ED4A #4AED5D
monochromatic
#7111AC #9517E3 #AF4AED #C882F3 #E0B9F8

Accessibility & contrast

On white

4.18
#AF4AED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AF4AED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4AED
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AED#FFFFFF#000000##000000
##AF4AED1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F2
Deuteranopia (green-blind)
#2A7DE9
Tritanopia (blue-blind)
#A66E96
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4aed;
/* rgb */ color: rgb(175, 74, 237);
/* oklch */ color: oklch(61.6% 0.238 309.5);
Tailwind
colors: {
  custom: {
    50: '#cc84f4',
    500: '#af4aed',
    950: '#000000',
  },
}
SCSS
$custom: #af4aed;
$custom-light: #cc84f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4aed",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 237
  },
  "hsl": {
    "h": 277.178,
    "s": 81.91,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61551,
    "c": 0.23776,
    "h": 309.5
  },
  "luminance": 0.20126
}

Semantic roles & 50–950 ramp

primary
#AF4AED
secondary
#C2E8AB
accent
#DE0759
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF4AED

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

Preview Lab → · Contrast checker → · Palette generator →

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