#AF74DF#AF74DF

#AF74DF is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.4% C 0.163 H 308.0°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#AF74DF
RGBrgb(175, 116, 223)
HSLhsl(273, 63%, 66%)
HSVhsv(273, 48%, 87%)
CMYKcmyk(21.5%, 48%, 0%, 12.5%)
CIE-LABlab(58.91, 42.98, -45.91)
CIE-LCHlch(58.91, 62.89, 313.11°)
OKLaboklab(66.35% 0.1003 -0.1283)
OKLCHoklch(66.35% 0.163 308)
XYZxyz(37.2413, 26.9329, 73.0344)
Luminance0.2693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74DF #A4DF74
analogous
#7A74DF #AF74DF #DF74DA
triadic
#AF74DF #DFAF74 #74DFAF
tetradic
#AF74DF #DF7A74 #A4DF74 #74DADF
square
#AF74DF #DF7A74 #A4DF74 #74DADF
split-complementary
#AF74DF #DADF74 #74DF7A
monochromatic
#7329B0 #9242D4 #AF74DF #CCA6EA #E8D7F6

Accessibility & contrast

On white

3.29
#AF74DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#AF74DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74DF
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74DF#FFFFFF#000000##000000
##AF74DF1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#588BE3
Deuteranopia (green-blind)
#688EDC
Tritanopia (blue-blind)
#A8869F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af74df;
/* rgb */ color: rgb(175, 116, 223);
/* oklch */ color: oklch(66.4% 0.163 308.0);
Tailwind
colors: {
  custom: {
    50: '#c99de9',
    500: '#af74df',
    950: '#000000',
  },
}
SCSS
$custom: #af74df;
$custom-light: #c99de9;
$custom-dark: #000000;
JSON
{
  "hex": "#af74df",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 223
  },
  "hsl": {
    "h": 273.084,
    "s": 62.573,
    "l": 66.471
  },
  "oklch": {
    "l": 0.66352,
    "c": 0.16287,
    "h": 308
  },
  "luminance": 0.26932
}

Semantic roles & 50–950 ramp

primary
#AF74DF
secondary
#D6E9C6
accent
#CA1B6A
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF74DF

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

Preview Lab → · Contrast checker → · Palette generator →

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