#AF7EEF#AF7EEF

#AF7EEF is a light, vivid violet. Relative luminance 0.303; OKLCH L 68.8% C 0.166 H 302.3°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AF7EEF
RGBrgb(175, 126, 239)
HSLhsl(266, 78%, 72%)
HSVhsv(266, 47%, 94%)
CMYKcmyk(26.8%, 47.3%, 0%, 6.3%)
CIE-LABlab(61.88, 41.21, -50.12)
CIE-LCHlch(61.88, 64.89, 309.43°)
OKLaboklab(68.83% 0.0887 -0.1406)
OKLCHoklch(68.83% 0.166 302.3)
XYZxyz(40.7166, 30.2676, 85.3418)
Luminance0.3027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EEF #BEEF7E
analogous
#7E86EF #AF7EEF #E87EEF
triadic
#AF7EEF #EFAF7E #7EEFAF
tetradic
#AF7EEF #EF7E86 #BEEF7E #7EEFE8
square
#AF7EEF #EF7E86 #BEEF7E #7EEFE8
split-complementary
#AF7EEF #EFE87E #86EF7E
monochromatic
#6D1BD8 #8D48E8 #AF7EEF #D1B4F6 #EEE4FC

Accessibility & contrast

On white

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

On black

7.05
#AF7EEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EEF
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EEF#FFFFFF#000000##000000
##AF7EEF1.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C95F3
Deuteranopia (green-blind)
#6995EC
Tritanopia (blue-blind)
#A392AB
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7eef;
/* rgb */ color: rgb(175, 126, 239);
/* oklch */ color: oklch(68.8% 0.166 302.3);
Tailwind
colors: {
  custom: {
    50: '#c9a4f5',
    500: '#af7eef',
    950: '#000000',
  },
}
SCSS
$custom: #af7eef;
$custom-light: #c9a4f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af7eef",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 239
  },
  "hsl": {
    "h": 266.018,
    "s": 77.931,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68832,
    "c": 0.16625,
    "h": 302.3
  },
  "luminance": 0.30268
}

Semantic roles & 50–950 ramp

primary
#AF7EEF
secondary
#E6F3D6
accent
#DA0B80
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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