#AF7EF4#AF7EF4

#AF7EF4 is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.1% C 0.172 H 301.2°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#AF7EF4
RGBrgb(175, 126, 244)
HSLhsl(265, 84%, 73%)
HSVhsv(265, 48%, 96%)
CMYKcmyk(28.3%, 48.4%, 0%, 4.3%)
CIE-LABlab(62.14, 42.40, -52.47)
CIE-LCHlch(62.14, 67.46, 308.94°)
OKLaboklab(69.11% 0.0893 -0.1475)
OKLCHoklch(69.11% 0.172 301.2)
XYZxyz(41.4654, 30.5672, 89.2859)
Luminance0.3057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EF4 #C3F47E
analogous
#7E88F4 #AF7EF4 #EA7EF4
triadic
#AF7EF4 #F4AF7E #7EF4AF
tetradic
#AF7EF4 #F47E88 #C3F47E #7EF4EA
square
#AF7EF4 #F47E88 #C3F47E #7EF4EA
split-complementary
#AF7EF4 #F4EA7E #88F47E
monochromatic
#6A13E4 #8C46EF #AF7EF4 #D2B6F9 #EEE3FD

Accessibility & contrast

On white

2.95
#AF7EF4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#AF7EF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EF4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EF4#FFFFFF#000000##000000
##AF7EF41.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5996F8
Deuteranopia (green-blind)
#6596F1
Tritanopia (blue-blind)
#A294AE
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7ef4;
/* rgb */ color: rgb(175, 126, 244);
/* oklch */ color: oklch(69.1% 0.172 301.2);
Tailwind
colors: {
  custom: {
    50: '#caa4f8',
    500: '#af7ef4',
    950: '#000000',
  },
}
SCSS
$custom: #af7ef4;
$custom-light: #caa4f8;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ef4",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 244
  },
  "hsl": {
    "h": 264.915,
    "s": 84.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69106,
    "c": 0.17239,
    "h": 301.2
  },
  "luminance": 0.30567
}

Semantic roles & 50–950 ramp

primary
#AF7EF4
secondary
#E8F5D6
accent
#E10585
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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