#AF97EA#AF97EA

#AF97EA is a light, vivid violet. Relative luminance 0.372; OKLCH L 72.9% C 0.120 H 296.6°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#AF97EA
RGBrgb(175, 151, 234)
HSLhsl(257, 66%, 75%)
HSVhsv(257, 35%, 92%)
CMYKcmyk(25.2%, 35.5%, 0%, 8.2%)
CIE-LABlab(67.42, 26.04, -38.66)
CIE-LCHlch(67.42, 46.61, 303.96°)
OKLaboklab(72.94% 0.0538 -0.1074)
OKLCHoklch(72.94% 0.12 296.6)
XYZxyz(43.5936, 37.1873, 82.7071)
Luminance0.3719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97EA #D2EA97
analogous
#97A8EA #AF97EA #D897EA
triadic
#AF97EA #EAAF97 #97EAAF
tetradic
#AF97EA #EA97A8 #D2EA97 #97EAD8
square
#AF97EA #EA97A8 #D2EA97 #97EAD8
split-complementary
#AF97EA #EAD897 #A8EA97
monochromatic
#6131D5 #8864E0 #AF97EA #D6CAF4 #EBE6FA

Accessibility & contrast

On white

2.49
#AF97EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#AF97EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97EA
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97EA#FFFFFF#000000##000000
##AF97EA1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A5ED
Deuteranopia (green-blind)
#85A3E8
Tritanopia (blue-blind)
#A3A5B6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #af97ea;
/* rgb */ color: rgb(175, 151, 234);
/* oklch */ color: oklch(72.9% 0.120 296.6);
Tailwind
colors: {
  custom: {
    50: '#c8b5f1',
    500: '#af97ea',
    950: '#000000',
  },
}
SCSS
$custom: #af97ea;
$custom-light: #c8b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af97ea",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 257.349,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.72935,
    "c": 0.12017,
    "h": 296.6
  },
  "luminance": 0.37188
}

Semantic roles & 50–950 ramp

primary
#AF97EA
secondary
#EAF1DA
accent
#CE1799
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF97EA

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

Preview Lab → · Contrast checker → · Palette generator →

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