#AF91F8#AF91F8

#AF91F8 is a light, vivid violet. Relative luminance 0.361; OKLCH L 72.5% C 0.148 H 295.9°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#AF91F8
RGBrgb(175, 145, 248)
HSLhsl(257, 88%, 77%)
HSVhsv(257, 42%, 97%)
CMYKcmyk(29.4%, 41.5%, 0%, 2.7%)
CIE-LABlab(66.63, 32.80, -47.57)
CIE-LCHlch(66.63, 57.79, 304.59°)
OKLaboklab(72.54% 0.0647 -0.1332)
OKLCHoklch(72.54% 0.148 295.9)
XYZxyz(44.7437, 36.1415, 93.4074)
Luminance0.3614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF91F8 #DAF891
analogous
#91A7F8 #AF91F8 #E391F8
triadic
#AF91F8 #F8AF91 #91F8AF
tetradic
#AF91F8 #F891A7 #DAF891 #91F8E3
square
#AF91F8 #F891A7 #DAF891 #91F8E3
split-complementary
#AF91F8 #F8E391 #A7F891
monochromatic
#5B1EF1 #8557F4 #AF91F8 #D9CBFC #EAE2FD

Accessibility & contrast

On white

2.55
#AF91F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#AF91F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF91F8
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF91F8#FFFFFF#000000##000000
##AF91F81.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A3FC
Deuteranopia (green-blind)
#78A1F5
Tritanopia (blue-blind)
#9FA3B9
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #af91f8;
/* rgb */ color: rgb(175, 145, 248);
/* oklch */ color: oklch(72.5% 0.148 295.9);
Tailwind
colors: {
  custom: {
    50: '#c9b1fb',
    500: '#af91f8',
    950: '#000000',
  },
}
SCSS
$custom: #af91f8;
$custom-light: #c9b1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af91f8",
  "rgb": {
    "r": 175,
    "g": 145,
    "b": 248
  },
  "hsl": {
    "h": 257.476,
    "s": 88.034,
    "l": 77.059
  },
  "oklch": {
    "l": 0.72542,
    "c": 0.14811,
    "h": 295.9
  },
  "luminance": 0.36142
}

Semantic roles & 50–950 ramp

primary
#AF91F8
secondary
#ECF5D6
accent
#E501A2
background
#FCFAFF
surface
#F8F5FF
border
#D1CFD7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF91F8

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

Preview Lab → · Contrast checker → · Palette generator →

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