#AF74E4#AF74E4

#AF74E4 is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.6% C 0.169 H 306.7°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#AF74E4
RGBrgb(175, 116, 228)
HSLhsl(272, 67%, 67%)
HSVhsv(272, 49%, 89%)
CMYKcmyk(23.2%, 49.1%, 0%, 10.6%)
CIE-LABlab(59.16, 44.11, -48.31)
CIE-LCHlch(59.16, 65.42, 312.40°)
OKLaboklab(66.62% 0.1009 -0.1353)
OKLCHoklch(66.62% 0.169 306.7)
XYZxyz(37.9253, 27.2065, 76.6372)
Luminance0.2721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74E4 #A9E474
analogous
#7774E4 #AF74E4 #E474E1
triadic
#AF74E4 #E4AF74 #74E4AF
tetradic
#AF74E4 #E47774 #A9E474 #74E1E4
square
#AF74E4 #E47774 #A9E474 #74E1E4
split-complementary
#AF74E4 #E1E474 #74E477
monochromatic
#7324BA #9241DA #AF74E4 #CCA7EE #EADAF8

Accessibility & contrast

On white

3.26
#AF74E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#AF74E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74E4
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74E4#FFFFFF#000000##000000
##AF74E41.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#558CE8
Deuteranopia (green-blind)
#658FE1
Tritanopia (blue-blind)
#A787A1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af74e4;
/* rgb */ color: rgb(175, 116, 228);
/* oklch */ color: oklch(66.6% 0.169 306.7);
Tailwind
colors: {
  custom: {
    50: '#c99ded',
    500: '#af74e4',
    950: '#000000',
  },
}
SCSS
$custom: #af74e4;
$custom-light: #c99ded;
$custom-dark: #000000;
JSON
{
  "hex": "#af74e4",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 228
  },
  "hsl": {
    "h": 271.607,
    "s": 67.47,
    "l": 67.451
  },
  "oklch": {
    "l": 0.66623,
    "c": 0.16876,
    "h": 306.7
  },
  "luminance": 0.27206
}

Semantic roles & 50–950 ramp

primary
#AF74E4
secondary
#D9EBC8
accent
#CF166E
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF74E4

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

Preview Lab → · Contrast checker → · Palette generator →

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