#AF7EFD#AF7EFD

#AF7EFD is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.6% C 0.183 H 299.4°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#AF7EFD
RGBrgb(175, 126, 253)
HSLhsl(263, 97%, 74%)
HSVhsv(263, 50%, 99%)
CMYKcmyk(30.8%, 50.2%, 0%, 0.8%)
CIE-LABlab(62.61, 44.58, -56.67)
CIE-LCHlch(62.61, 72.11, 308.19°)
OKLaboklab(69.61% 0.0901 -0.1597)
OKLCHoklch(69.61% 0.183 299.4)
XYZxyz(42.8655, 31.1272, 96.6593)
Luminance0.3113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EFD #CCFD7E
analogous
#7E8DFD #AF7EFD #EF7EFD
triadic
#AF7EFD #FDAF7E #7EFDAF
tetradic
#AF7EFD #FD7E8D #CCFD7E #7EFDEF
square
#AF7EFD #FD7E8D #CCFD7E #7EFDEF
split-complementary
#AF7EFD #FDEF7E #8DFD7E
monochromatic
#6405FB #8A42FC #AF7EFD #D4BAFE #ECE1FF

Accessibility & contrast

On white

2.91
#AF7EFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#AF7EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EFD
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EFD#FFFFFF#000000##000000
##AF7EFD1.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5297FF
Deuteranopia (green-blind)
#5E96FA
Tritanopia (blue-blind)
#9F96B2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af7efd;
/* rgb */ color: rgb(175, 126, 253);
/* oklch */ color: oklch(69.6% 0.183 299.4);
Tailwind
colors: {
  custom: {
    50: '#caa4ff',
    500: '#af7efd',
    950: '#000000',
  },
}
SCSS
$custom: #af7efd;
$custom-light: #caa4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7efd",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 263.15,
    "s": 96.947,
    "l": 74.314
  },
  "oklch": {
    "l": 0.69613,
    "c": 0.18341,
    "h": 299.4
  },
  "luminance": 0.31128
}

Semantic roles & 50–950 ramp

primary
#AF7EFD
secondary
#E9F7D4
accent
#E6008D
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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