#AF7EE7#AF7EE7

#AF7EE7 is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.4% C 0.156 H 304.1°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#AF7EE7
RGBrgb(175, 126, 231)
HSLhsl(268, 69%, 70%)
HSVhsv(268, 45%, 91%)
CMYKcmyk(24.2%, 45.5%, 0%, 9.4%)
CIE-LABlab(61.49, 39.33, -46.31)
CIE-LCHlch(61.49, 60.76, 310.34°)
OKLaboklab(68.4% 0.0877 -0.1295)
OKLCHoklch(68.4% 0.156 304.1)
XYZxyz(39.5608, 29.8053, 79.2547)
Luminance0.2980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EE7 #B6E77E
analogous
#7E82E7 #AF7EE7 #E37EE7
triadic
#AF7EE7 #E7AF7E #7EE7AF
tetradic
#AF7EE7 #E77E82 #B6E77E #7EE7E3
square
#AF7EE7 #E77E82 #B6E77E #7EE7E3
split-complementary
#AF7EE7 #E7E37E #82E77E
monochromatic
#7025C6 #8F4ADD #AF7EE7 #CFB2F1 #EFE5FA

Accessibility & contrast

On white

3.02
#AF7EE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#AF7EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7EE7
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EE7#FFFFFF#000000##000000
##AF7EE71.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6293EB
Deuteranopia (green-blind)
#6E94E4
Tritanopia (blue-blind)
#A690A8
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af7ee7;
/* rgb */ color: rgb(175, 126, 231);
/* oklch */ color: oklch(68.4% 0.156 304.1);
Tailwind
colors: {
  custom: {
    50: '#c9a4ef',
    500: '#af7ee7',
    950: '#000000',
  },
}
SCSS
$custom: #af7ee7;
$custom-light: #c9a4ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ee7",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 231
  },
  "hsl": {
    "h": 268,
    "s": 68.627,
    "l": 70
  },
  "oklch": {
    "l": 0.68404,
    "c": 0.15642,
    "h": 304.1
  },
  "luminance": 0.29805
}

Semantic roles & 50–950 ramp

primary
#AF7EE7
secondary
#E1EFD2
accent
#D11579
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF7EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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