#AF7FED#AF7FED

#AF7FED is a light, vivid violet. Relative luminance 0.304; OKLCH L 68.9% C 0.162 H 302.5°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#AF7FED
RGBrgb(175, 127, 237)
HSLhsl(266, 75%, 71%)
HSVhsv(266, 46%, 93%)
CMYKcmyk(26.2%, 46.4%, 0%, 7.1%)
CIE-LABlab(62.00, 40.18, -48.82)
CIE-LCHlch(62.00, 63.23, 309.46°)
OKLaboklab(68.89% 0.0872 -0.1368)
OKLCHoklch(68.89% 0.162 302.5)
XYZxyz(40.5512, 30.4071, 83.8372)
Luminance0.3041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FED #BDED7F
analogous
#7F86ED #AF7FED #E67FED
triadic
#AF7FED #EDAF7F #7FEDAF
tetradic
#AF7FED #ED7F86 #BDED7F #7FEDE6
square
#AF7FED #ED7F86 #BDED7F #7FEDE6
split-complementary
#AF7FED #EDE67F #86ED7F
monochromatic
#6D1ED4 #8D49E5 #AF7FED #D1B5F5 #EEE4FB

Accessibility & contrast

On white

2.97
#AF7FED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#AF7FED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7FED
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FED#FFFFFF#000000##000000
##AF7FED1.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F95F1
Deuteranopia (green-blind)
#6B96EA
Tritanopia (blue-blind)
#A492AB
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7fed;
/* rgb */ color: rgb(175, 127, 237);
/* oklch */ color: oklch(68.9% 0.162 302.5);
Tailwind
colors: {
  custom: {
    50: '#c9a5f3',
    500: '#af7fed',
    950: '#000000',
  },
}
SCSS
$custom: #af7fed;
$custom-light: #c9a5f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af7fed",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 237
  },
  "hsl": {
    "h": 266.182,
    "s": 75.342,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68888,
    "c": 0.16222,
    "h": 302.5
  },
  "luminance": 0.30407
}

Semantic roles & 50–950 ramp

primary
#AF7FED
secondary
#E6F2D6
accent
#D80E80
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7FED

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

Preview Lab → · Contrast checker → · Palette generator →

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