#AF74F7#AF74F7

#AF74F7 is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.7% C 0.191 H 302.4°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#AF74F7
RGBrgb(175, 116, 247)
HSLhsl(267, 89%, 71%)
HSVhsv(267, 53%, 97%)
CMYKcmyk(29.1%, 53%, 0%, 3.1%)
CIE-LABlab(60.18, 48.55, -57.26)
CIE-LCHlch(60.18, 75.07, 310.29°)
OKLaboklab(67.7% 0.1024 -0.1614)
OKLCHoklch(67.7% 0.191 302.4)
XYZxyz(40.7093, 28.3201, 91.2993)
Luminance0.2832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF74F7 #BCF774
analogous
#747AF7 #AF74F7 #F174F7
triadic
#AF74F7 #F7AF74 #74F7AF
tetradic
#AF74F7 #F7747A #BCF774 #74F7F1
square
#AF74F7 #F7747A #BCF774 #74F7F1
split-complementary
#AF74F7 #F7F174 #7AF774
monochromatic
#6E0DE4 #8E3AF4 #AF74F7 #D0AEFA #EEE2FD

Accessibility & contrast

On white

3.15
#AF74F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#AF74F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF74F7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF74F7#FFFFFF#000000##000000
##AF74F71.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4490FB
Deuteranopia (green-blind)
#5791F4
Tritanopia (blue-blind)
#A18DAB
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af74f7;
/* rgb */ color: rgb(175, 116, 247);
/* oklch */ color: oklch(67.7% 0.191 302.4);
Tailwind
colors: {
  custom: {
    50: '#ca9efa',
    500: '#af74f7',
    950: '#000000',
  },
}
SCSS
$custom: #af74f7;
$custom-light: #ca9efa;
$custom-dark: #000000;
JSON
{
  "hex": "#af74f7",
  "rgb": {
    "r": 175,
    "g": 116,
    "b": 247
  },
  "hsl": {
    "h": 267.023,
    "s": 89.116,
    "l": 71.176
  },
  "oklch": {
    "l": 0.677,
    "c": 0.19115,
    "h": 302.4
  },
  "luminance": 0.2832
}

Semantic roles & 50–950 ramp

primary
#AF74F7
secondary
#E5F5D2
accent
#E6007E
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF74F7

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

Preview Lab → · Contrast checker → · Palette generator →

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