#AF7FEE#AF7FEE

#AF7FEE is a light, vivid violet. Relative luminance 0.305; OKLCH L 68.9% C 0.163 H 302.3°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#AF7FEE
RGBrgb(175, 127, 238)
HSLhsl(266, 77%, 72%)
HSVhsv(266, 47%, 93%)
CMYKcmyk(26.5%, 46.6%, 0%, 6.7%)
CIE-LABlab(62.05, 40.42, -49.30)
CIE-LCHlch(62.05, 63.75, 309.35°)
OKLaboklab(68.94% 0.0873 -0.1382)
OKLCHoklch(68.94% 0.163 302.3)
XYZxyz(40.6978, 30.4657, 84.6087)
Luminance0.3047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FEE #BEEE7F
analogous
#7F87EE #AF7FEE #E77FEE
triadic
#AF7FEE #EEAF7F #7FEEAF
tetradic
#AF7FEE #EE7F87 #BEEE7F #7FEEE7
square
#AF7FEE #EE7F87 #BEEE7F #7FEEE7
split-complementary
#AF7FEE #EEE77F #87EE7F
monochromatic
#6D1CD6 #8D49E7 #AF7FEE #D1B5F5 #EEE4FB

Accessibility & contrast

On white

2.96
#AF7FEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#AF7FEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7FEE
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FEE#FFFFFF#000000##000000
##AF7FEE1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F95F2
Deuteranopia (green-blind)
#6A96EB
Tritanopia (blue-blind)
#A493AB
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7fee;
/* rgb */ color: rgb(175, 127, 238);
/* oklch */ color: oklch(68.9% 0.163 302.3);
Tailwind
colors: {
  custom: {
    50: '#c9a5f4',
    500: '#af7fee',
    950: '#000000',
  },
}
SCSS
$custom: #af7fee;
$custom-light: #c9a5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af7fee",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 238
  },
  "hsl": {
    "h": 265.946,
    "s": 76.552,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68942,
    "c": 0.16345,
    "h": 302.3
  },
  "luminance": 0.30466
}

Semantic roles & 50–950 ramp

primary
#AF7FEE
secondary
#E6F3D6
accent
#D90D81
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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