#AF74DB#AF74DB

#AF74DB is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.1% C 0.158 H 309.1°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#AF74DB
RGBrgb(175, 116, 219)
HSLhsl(274, 59%, 66%)
HSVhsv(274, 47%, 86%)
CMYKcmyk(20.1%, 47%, 0%, 14.1%)
CIE-LABlab(58.71, 42.08, -43.98)
CIE-LCHlch(58.71, 60.87, 313.73°)
OKLaboklab(66.14% 0.0998 -0.1227)
OKLCHoklch(66.14% 0.158 309.1)
XYZxyz(36.7083, 26.7197, 70.2277)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74DB #A0DB74
analogous
#7B74DB #AF74DB #DB74D3
triadic
#AF74DB #DBAF74 #74DBAF
tetradic
#AF74DB #DB7B74 #A0DB74 #74D3DB
square
#AF74DB #DB7B74 #A0DB74 #74D3DB
split-complementary
#AF74DB #D3DB74 #74DB7B
monochromatic
#732CA9 #9343CE #AF74DB #CBA5E8 #E7D5F4

Accessibility & contrast

On white

3.31
#AF74DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#AF74DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74DB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74DB#FFFFFF#000000##000000
##AF74DB1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8BDF
Deuteranopia (green-blind)
#6B8ED8
Tritanopia (blue-blind)
#A9859D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af74db;
/* rgb */ color: rgb(175, 116, 219);
/* oklch */ color: oklch(66.1% 0.158 309.1);
Tailwind
colors: {
  custom: {
    50: '#c99de6',
    500: '#af74db',
    950: '#000000',
  },
}
SCSS
$custom: #af74db;
$custom-light: #c99de6;
$custom-dark: #000000;
JSON
{
  "hex": "#af74db",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 219
  },
  "hsl": {
    "h": 274.369,
    "s": 58.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.6614,
    "c": 0.15817,
    "h": 309.1
  },
  "luminance": 0.26719
}

Semantic roles & 50–950 ramp

primary
#AF74DB
secondary
#D3E7C4
accent
#C61F67
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF74DB

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

Preview Lab → · Contrast checker → · Palette generator →

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