#AF74DC#AF74DC

#AF74DC is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.2% C 0.159 H 308.8°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AF74DC
RGBrgb(175, 116, 220)
HSLhsl(274, 60%, 66%)
HSVhsv(274, 47%, 86%)
CMYKcmyk(20.5%, 47.3%, 0%, 13.7%)
CIE-LABlab(58.76, 42.30, -44.47)
CIE-LCHlch(58.76, 61.37, 313.57°)
OKLaboklab(66.19% 0.0999 -0.1241)
OKLCHoklch(66.19% 0.159 308.8)
XYZxyz(36.8404, 26.7726, 70.9231)
Luminance0.2677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74DC #A1DC74
analogous
#7B74DC #AF74DC #DC74D5
triadic
#AF74DC #DCAF74 #74DCAF
tetradic
#AF74DC #DC7B74 #A1DC74 #74D5DC
square
#AF74DC #DC7B74 #A1DC74 #74D5DC
split-complementary
#AF74DC #D5DC74 #74DC7B
monochromatic
#732BAB #9343D0 #AF74DC #CBA5E8 #E7D6F5

Accessibility & contrast

On white

3.30
#AF74DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#AF74DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74DC
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74DC#FFFFFF#000000##000000
##AF74DC1.003.306.356.35
#FFFFFF3.301.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8BE0
Deuteranopia (green-blind)
#6A8ED9
Tritanopia (blue-blind)
#A9859E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af74dc;
/* rgb */ color: rgb(175, 116, 220);
/* oklch */ color: oklch(66.2% 0.159 308.8);
Tailwind
colors: {
  custom: {
    50: '#c99de7',
    500: '#af74dc',
    950: '#000000',
  },
}
SCSS
$custom: #af74dc;
$custom-light: #c99de7;
$custom-dark: #000000;
JSON
{
  "hex": "#af74dc",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 220
  },
  "hsl": {
    "h": 274.038,
    "s": 59.77,
    "l": 65.882
  },
  "oklch": {
    "l": 0.66193,
    "c": 0.15935,
    "h": 308.8
  },
  "luminance": 0.26772
}

Semantic roles & 50–950 ramp

primary
#AF74DC
secondary
#D4E7C5
accent
#C71E67
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF74DC

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

Preview Lab → · Contrast checker → · Palette generator →

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