#AF7EEC#AF7EEC

#AF7EEC is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.7% C 0.163 H 302.9°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#AF7EEC
RGBrgb(175, 126, 236)
HSLhsl(267, 74%, 71%)
HSVhsv(267, 47%, 93%)
CMYKcmyk(25.8%, 46.6%, 0%, 7.5%)
CIE-LABlab(61.73, 40.50, -48.70)
CIE-LCHlch(61.73, 63.34, 309.75°)
OKLaboklab(68.67% 0.0884 -0.1364)
OKLCHoklch(68.67% 0.163 302.9)
XYZxyz(40.2770, 30.0918, 83.0270)
Luminance0.3009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EEC #BBEC7E
analogous
#7E84EC #AF7EEC #E67EEC
triadic
#AF7EEC #ECAF7E #7EECAF
tetradic
#AF7EEC #EC7E84 #BBEC7E #7EECE6
square
#AF7EEC #EC7E84 #BBEC7E #7EECE6
split-complementary
#AF7EEC #ECE67E #84EC7E
monochromatic
#6E1FD1 #8E49E4 #AF7EEC #D0B3F4 #EEE4FB

Accessibility & contrast

On white

2.99
#AF7EEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#AF7EEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EEC
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EEC#FFFFFF#000000##000000
##AF7EEC1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E94F0
Deuteranopia (green-blind)
#6B95E9
Tritanopia (blue-blind)
#A491AA
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7eec;
/* rgb */ color: rgb(175, 126, 236);
/* oklch */ color: oklch(68.7% 0.163 302.9);
Tailwind
colors: {
  custom: {
    50: '#c9a4f2',
    500: '#af7eec',
    950: '#000000',
  },
}
SCSS
$custom: #af7eec;
$custom-light: #c9a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af7eec",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 266.727,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.6867,
    "c": 0.16257,
    "h": 302.9
  },
  "luminance": 0.30092
}

Semantic roles & 50–950 ramp

primary
#AF7EEC
secondary
#E4F2D4
accent
#D60F7E
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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