#AF74EA#AF74EA

#AF74EA is a light, vivid violet. Relative luminance 0.275; OKLCH L 67.0% C 0.176 H 305.2°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#AF74EA
RGBrgb(175, 116, 234)
HSLhsl(270, 74%, 69%)
HSVhsv(270, 50%, 92%)
CMYKcmyk(25.2%, 50.4%, 0%, 8.2%)
CIE-LABlab(59.48, 45.50, -51.16)
CIE-LCHlch(59.48, 68.47, 311.64°)
OKLaboklab(66.96% 0.1015 -0.1436)
OKLCHoklch(66.96% 0.176 305.2)
XYZxyz(38.7727, 27.5455, 81.1002)
Luminance0.2754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74EA #AFEA74
analogous
#7474EA #AF74EA #EA74EA
triadic
#AF74EA #EAAF74 #74EAAF
tetradic
#AF74EA #EA7474 #AFEA74 #74EAEA
square
#AF74EA #EA7474 #AFEA74 #74EAEA
split-complementary
#AF74EA #EAEA74 #74EA74
monochromatic
#721EC6 #903FE2 #AF74EA #CEA9F2 #ECDEFA

Accessibility & contrast

On white

3.23
#AF74EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#AF74EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74EA
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74EA#FFFFFF#000000##000000
##AF74EA1.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#508DEE
Deuteranopia (green-blind)
#618FE7
Tritanopia (blue-blind)
#A589A4
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af74ea;
/* rgb */ color: rgb(175, 116, 234);
/* oklch */ color: oklch(67.0% 0.176 305.2);
Tailwind
colors: {
  custom: {
    50: '#c99df1',
    500: '#af74ea',
    950: '#000000',
  },
}
SCSS
$custom: #af74ea;
$custom-light: #c99df1;
$custom-dark: #000000;
JSON
{
  "hex": "#af74ea",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 234
  },
  "hsl": {
    "h": 270,
    "s": 73.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66955,
    "c": 0.17584,
    "h": 305.2
  },
  "luminance": 0.27545
}

Semantic roles & 50–950 ramp

primary
#AF74EA
secondary
#DDEFCB
accent
#D61073
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF74EA

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

Preview Lab → · Contrast checker → · Palette generator →

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