#AF7FF9#AF7FF9

#AF7FF9 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.5% C 0.177 H 300.0°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#AF7FF9
RGBrgb(175, 127, 249)
HSLhsl(264, 91%, 74%)
HSVhsv(264, 49%, 98%)
CMYKcmyk(29.7%, 49%, 0%, 2.4%)
CIE-LABlab(62.62, 43.06, -54.47)
CIE-LCHlch(62.62, 69.43, 308.33°)
OKLaboklab(69.55% 0.0885 -0.1533)
OKLCHoklch(69.55% 0.177 300)
XYZxyz(42.3634, 31.1320, 93.3814)
Luminance0.3113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FF9 #C9F97F
analogous
#7F8CF9 #AF7FF9 #EC7FF9
triadic
#AF7FF9 #F9AF7F #7FF9AF
tetradic
#AF7FF9 #F97F8C #C9F97F #7FF9EC
square
#AF7FF9 #F97F8C #C9F97F #7FF9EC
split-complementary
#AF7FF9 #F9EC7F #8CF97F
monochromatic
#660BF2 #8A45F6 #AF7FF9 #D4B9FC #EDE2FE

Accessibility & contrast

On white

2.91
#AF7FF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#AF7FF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7FF9
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FF9#FFFFFF#000000##000000
##AF7FF91.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5797FD
Deuteranopia (green-blind)
#6397F6
Tritanopia (blue-blind)
#A096B0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af7ff9;
/* rgb */ color: rgb(175, 127, 249);
/* oklch */ color: oklch(69.5% 0.177 300.0);
Tailwind
colors: {
  custom: {
    50: '#caa5fc',
    500: '#af7ff9',
    950: '#000000',
  },
}
SCSS
$custom: #af7ff9;
$custom-light: #caa5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ff9",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 249
  },
  "hsl": {
    "h": 263.607,
    "s": 91.045,
    "l": 73.725
  },
  "oklch": {
    "l": 0.69548,
    "c": 0.177,
    "h": 300
  },
  "luminance": 0.31132
}

Semantic roles & 50–950 ramp

primary
#AF7FF9
secondary
#E9F6D5
accent
#E6008B
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF7FF9

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

Preview Lab → · Contrast checker → · Palette generator →

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