#AF7EEE#AF7EEE

#AF7EEE is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.8% C 0.165 H 302.5°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#AF7EEE
RGBrgb(175, 126, 238)
HSLhsl(266, 77%, 71%)
HSVhsv(266, 47%, 93%)
CMYKcmyk(26.5%, 47.1%, 0%, 6.7%)
CIE-LABlab(61.83, 40.97, -49.64)
CIE-LCHlch(61.83, 64.37, 309.53°)
OKLaboklab(68.78% 0.0886 -0.1392)
OKLCHoklch(68.78% 0.165 302.5)
XYZxyz(40.5692, 30.2087, 84.5659)
Luminance0.3021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EEE #BDEE7E
analogous
#7E85EE #AF7EEE #E77EEE
triadic
#AF7EEE #EEAF7E #7EEEAF
tetradic
#AF7EEE #EE7E85 #BDEE7E #7EEEE7
square
#AF7EEE #EE7E85 #BDEE7E #7EEEE7
split-complementary
#AF7EEE #EEE77E #85EE7E
monochromatic
#6D1CD5 #8D48E7 #AF7EEE #D1B4F5 #EEE4FB

Accessibility & contrast

On white

2.98
#AF7EEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#AF7EEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EEE
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EEE#FFFFFF#000000##000000
##AF7EEE1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D94F2
Deuteranopia (green-blind)
#6995EB
Tritanopia (blue-blind)
#A492AB
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7eee;
/* rgb */ color: rgb(175, 126, 238);
/* oklch */ color: oklch(68.8% 0.165 302.5);
Tailwind
colors: {
  custom: {
    50: '#c9a4f4',
    500: '#af7eee',
    950: '#000000',
  },
}
SCSS
$custom: #af7eee;
$custom-light: #c9a4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af7eee",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 238
  },
  "hsl": {
    "h": 266.25,
    "s": 76.712,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68778,
    "c": 0.16502,
    "h": 302.5
  },
  "luminance": 0.30209
}

Semantic roles & 50–950 ramp

primary
#AF7EEE
secondary
#E6F2D5
accent
#D90D80
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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