#AF9FF8#AF9FF8

#AF9FF8 is a light, vivid violet. Relative luminance 0.407; OKLCH L 75.1% C 0.127 H 291.3°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#AF9FF8
RGBrgb(175, 159, 248)
HSLhsl(251, 86%, 80%)
HSVhsv(251, 36%, 97%)
CMYKcmyk(29.4%, 35.9%, 0%, 2.7%)
CIE-LABlab(69.96, 24.93, -42.35)
CIE-LCHlch(69.96, 49.14, 300.49°)
OKLaboklab(75.07% 0.046 -0.1181)
OKLCHoklch(75.07% 0.127 291.3)
XYZxyz(47.0163, 40.6867, 94.1650)
Luminance0.4069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9FF8 #E8F89F
analogous
#9FBBF8 #AF9FF8 #DC9FF8
triadic
#AF9FF8 #F8AF9F #9FF8AF
tetradic
#AF9FF8 #F89FBB #E8F89F #9FF8DC
square
#AF9FF8 #F89FBB #E8F89F #9FF8DC
split-complementary
#AF9FF8 #F8DC9F #BBF89F
monochromatic
#502DF0 #7F66F4 #AF9FF8 #DFD8FC #E7E2FD

Accessibility & contrast

On white

2.30
#AF9FF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#AF9FF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9FF8
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9FF8#FFFFFF#000000##000000
##AF9FF81.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#86ACFC
Deuteranopia (green-blind)
#87A9F6
Tritanopia (blue-blind)
#9EAFC0
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #af9ff8;
/* rgb */ color: rgb(175, 159, 248);
/* oklch */ color: oklch(75.1% 0.127 291.3);
Tailwind
colors: {
  custom: {
    50: '#c9bbfb',
    500: '#af9ff8',
    950: '#000000',
  },
}
SCSS
$custom: #af9ff8;
$custom-light: #c9bbfb;
$custom-dark: #000000;
JSON
{
  "hex": "#af9ff8",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 248
  },
  "hsl": {
    "h": 250.787,
    "s": 86.408,
    "l": 79.804
  },
  "oklch": {
    "l": 0.75072,
    "c": 0.12674,
    "h": 291.3
  },
  "luminance": 0.40688
}

Semantic roles & 50–950 ramp

primary
#AF9FF8
secondary
#EFF5D6
accent
#E303BB
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AF9FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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