#AF95F8#AF95F8

#AF95F8 is a light, vivid violet. Relative luminance 0.374; OKLCH L 73.3% C 0.142 H 294.7°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#AF95F8
RGBrgb(175, 149, 248)
HSLhsl(256, 88%, 78%)
HSVhsv(256, 40%, 97%)
CMYKcmyk(29.4%, 39.9%, 0%, 2.7%)
CIE-LABlab(67.57, 30.56, -46.10)
CIE-LCHlch(67.57, 55.31, 303.54°)
OKLaboklab(73.25% 0.0594 -0.1289)
OKLCHoklch(73.25% 0.142 294.7)
XYZxyz(45.3658, 37.3855, 93.6148)
Luminance0.3739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF95F8 #DEF895
analogous
#95ACF8 #AF95F8 #E195F8
triadic
#AF95F8 #F8AF95 #95F8AF
tetradic
#AF95F8 #F895AC #DEF895 #95F8E1
square
#AF95F8 #F895AC #DEF895 #95F8E1
split-complementary
#AF95F8 #F8E195 #ACF895
monochromatic
#5822F0 #845CF4 #AF95F8 #DACEFC #E9E2FD

Accessibility & contrast

On white

2.48
#AF95F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#AF95F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF95F8
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF95F8#FFFFFF#000000##000000
##AF95F81.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A5FC
Deuteranopia (green-blind)
#7CA3F5
Tritanopia (blue-blind)
#9FA7BB
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #af95f8;
/* rgb */ color: rgb(175, 149, 248);
/* oklch */ color: oklch(73.3% 0.142 294.7);
Tailwind
colors: {
  custom: {
    50: '#c9b4fb',
    500: '#af95f8',
    950: '#000000',
  },
}
SCSS
$custom: #af95f8;
$custom-light: #c9b4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af95f8",
  "rgb": {
    "r": 175,
    "g": 149,
    "b": 248
  },
  "hsl": {
    "h": 255.758,
    "s": 87.611,
    "l": 77.843
  },
  "oklch": {
    "l": 0.73252,
    "c": 0.14196,
    "h": 294.7
  },
  "luminance": 0.37386
}

Semantic roles & 50–950 ramp

primary
#AF95F8
secondary
#EDF5D6
accent
#E401A9
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AF95F8

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

Preview Lab → · Contrast checker → · Palette generator →

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