#AF7EF3#AF7EF3

#AF7EF3 is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.1% C 0.171 H 301.4°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#AF7EF3
RGBrgb(175, 126, 243)
HSLhsl(265, 83%, 72%)
HSVhsv(265, 48%, 95%)
CMYKcmyk(28%, 48.1%, 0%, 4.7%)
CIE-LABlab(62.09, 42.16, -52.00)
CIE-LCHlch(62.09, 66.95, 309.03°)
OKLaboklab(69.05% 0.0892 -0.1461)
OKLCHoklch(69.05% 0.171 301.4)
XYZxyz(41.3140, 30.5066, 88.4885)
Luminance0.3051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EF3 #C2F37E
analogous
#7E88F3 #AF7EF3 #E97EF3
triadic
#AF7EF3 #F3AF7E #7EF3AF
tetradic
#AF7EF3 #F37E88 #C2F37E #7EF3E9
square
#AF7EF3 #F37E88 #C2F37E #7EF3E9
split-complementary
#AF7EF3 #F3E97E #88F37E
monochromatic
#6B15E2 #8C46EE #AF7EF3 #D2B6F8 #EEE3FC

Accessibility & contrast

On white

2.96
#AF7EF3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#AF7EF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EF3
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EF3#FFFFFF#000000##000000
##AF7EF31.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A95F7
Deuteranopia (green-blind)
#6696F0
Tritanopia (blue-blind)
#A293AD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7ef3;
/* rgb */ color: rgb(175, 126, 243);
/* oklch */ color: oklch(69.1% 0.171 301.4);
Tailwind
colors: {
  custom: {
    50: '#caa4f7',
    500: '#af7ef3',
    950: '#000000',
  },
}
SCSS
$custom: #af7ef3;
$custom-light: #caa4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ef3",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 243
  },
  "hsl": {
    "h": 265.128,
    "s": 82.979,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69051,
    "c": 0.17116,
    "h": 301.4
  },
  "luminance": 0.30507
}

Semantic roles & 50–950 ramp

primary
#AF7EF3
secondary
#E8F4D7
accent
#DF0684
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7EF3

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

Preview Lab → · Contrast checker → · Palette generator →

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