#AF74EB#AF74EB

#AF74EB is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.0% C 0.177 H 305.0°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#AF74EB
RGBrgb(175, 116, 235)
HSLhsl(270, 75%, 69%)
HSVhsv(270, 51%, 92%)
CMYKcmyk(25.5%, 50.6%, 0%, 7.8%)
CIE-LABlab(59.53, 45.73, -51.64)
CIE-LCHlch(59.53, 68.97, 311.53°)
OKLaboklab(67.01% 0.1015 -0.145)
OKLCHoklch(67.01% 0.177 305)
XYZxyz(38.9168, 27.6031, 81.8589)
Luminance0.2760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74EB #B0EB74
analogous
#7475EB #AF74EB #EB74EB
triadic
#AF74EB #EBAF74 #74EBAF
tetradic
#AF74EB #EB7475 #B0EB74 #74EBEB
square
#AF74EB #EB7475 #B0EB74 #74EBEB
split-complementary
#AF74EB #EBEB74 #75EB74
monochromatic
#721DC8 #903EE3 #AF74EB #CEAAF3 #EDDFFA

Accessibility & contrast

On white

3.22
#AF74EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#AF74EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74EB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74EB#FFFFFF#000000##000000
##AF74EB1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8EEF
Deuteranopia (green-blind)
#6190E8
Tritanopia (blue-blind)
#A589A5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af74eb;
/* rgb */ color: rgb(175, 116, 235);
/* oklch */ color: oklch(67.0% 0.177 305.0);
Tailwind
colors: {
  custom: {
    50: '#ca9df2',
    500: '#af74eb',
    950: '#000000',
  },
}
SCSS
$custom: #af74eb;
$custom-light: #ca9df2;
$custom-dark: #000000;
JSON
{
  "hex": "#af74eb",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 235
  },
  "hsl": {
    "h": 269.748,
    "s": 74.843,
    "l": 68.824
  },
  "oklch": {
    "l": 0.67011,
    "c": 0.17701,
    "h": 305
  },
  "luminance": 0.27603
}

Semantic roles & 50–950 ramp

primary
#AF74EB
secondary
#DEEFCC
accent
#D70F74
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF74EB

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

Preview Lab → · Contrast checker → · Palette generator →

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