#AF74F2#AF74F2

#AF74F2 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.4% C 0.185 H 303.4°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#AF74F2
RGBrgb(175, 116, 242)
HSLhsl(268, 83%, 70%)
HSVhsv(268, 52%, 95%)
CMYKcmyk(27.7%, 52.1%, 0%, 5.1%)
CIE-LABlab(59.90, 47.36, -54.93)
CIE-LCHlch(59.90, 72.53, 310.77°)
OKLaboklab(67.41% 0.1021 -0.1546)
OKLCHoklch(67.41% 0.185 303.4)
XYZxyz(39.9481, 28.0156, 87.2902)
Luminance0.2802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74F2 #B7F274
analogous
#7478F2 #AF74F2 #EE74F2
triadic
#AF74F2 #F2AF74 #74F2AF
tetradic
#AF74F2 #F27478 #B7F274 #74F2EE
square
#AF74F2 #F27478 #B7F274 #74F2EE
split-complementary
#AF74F2 #F2EE74 #78F274
monochromatic
#7014D7 #8F3CED #AF74F2 #CFACF7 #EFE3FC

Accessibility & contrast

On white

3.18
#AF74F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#AF74F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74F2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74F2#FFFFFF#000000##000000
##AF74F21.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#498FF6
Deuteranopia (green-blind)
#5B90EF
Tritanopia (blue-blind)
#A38BA8
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af74f2;
/* rgb */ color: rgb(175, 116, 242);
/* oklch */ color: oklch(67.4% 0.185 303.4);
Tailwind
colors: {
  custom: {
    50: '#ca9ef7',
    500: '#af74f2',
    950: '#000000',
  },
}
SCSS
$custom: #af74f2;
$custom-light: #ca9ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#af74f2",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 242
  },
  "hsl": {
    "h": 268.095,
    "s": 82.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67409,
    "c": 0.18527,
    "h": 303.4
  },
  "luminance": 0.28016
}

Semantic roles & 50–950 ramp

primary
#AF74F2
secondary
#E2F2CF
accent
#DF067A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF74F2

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

Preview Lab → · Contrast checker → · Palette generator →

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