#AF97EC#AF97EC

#AF97EC is a light, vivid violet. Relative luminance 0.373; OKLCH L 73.0% C 0.123 H 296.2°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#AF97EC
RGBrgb(175, 151, 236)
HSLhsl(257, 69%, 76%)
HSVhsv(257, 36%, 93%)
CMYKcmyk(25.8%, 36%, 0%, 7.5%)
CIE-LABlab(67.50, 26.52, -39.62)
CIE-LCHlch(67.50, 47.68, 303.79°)
OKLaboklab(73.03% 0.0543 -0.1102)
OKLCHoklch(73.03% 0.123 296.2)
XYZxyz(43.8826, 37.3029, 84.2289)
Luminance0.3730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97EC #D4EC97
analogous
#97A9EC #AF97EC #D997EC
triadic
#AF97EC #ECAF97 #97ECAF
tetradic
#AF97EC #EC97A9 #D4EC97 #97ECD9
square
#AF97EC #EC97A9 #D4EC97 #97ECD9
split-complementary
#AF97EC #ECD997 #A9EC97
monochromatic
#5F30D9 #8763E3 #AF97EC #D7CBF5 #EBE5FA

Accessibility & contrast

On white

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

On black

8.46
#AF97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97EC
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97EC#FFFFFF#000000##000000
##AF97EC1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A5EF
Deuteranopia (green-blind)
#84A3EA
Tritanopia (blue-blind)
#A3A5B7
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #af97ec;
/* rgb */ color: rgb(175, 151, 236);
/* oklch */ color: oklch(73.0% 0.123 296.2);
Tailwind
colors: {
  custom: {
    50: '#c8b5f2',
    500: '#af97ec',
    950: '#000000',
  },
}
SCSS
$custom: #af97ec;
$custom-light: #c8b5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af97ec",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 256.941,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73029,
    "c": 0.12284,
    "h": 296.2
  },
  "luminance": 0.37303
}

Semantic roles & 50–950 ramp

primary
#AF97EC
secondary
#EBF2D9
accent
#D1149C
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AF97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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