#AF7EF6#AF7EF6

#AF7EF6 is a light, vivid violet. Relative luminance 0.307; OKLCH L 69.2% C 0.175 H 300.8°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#AF7EF6
RGBrgb(175, 126, 246)
HSLhsl(265, 87%, 73%)
HSVhsv(265, 49%, 96%)
CMYKcmyk(28.9%, 48.8%, 0%, 3.5%)
CIE-LABlab(62.24, 42.88, -53.41)
CIE-LCHlch(62.24, 68.50, 308.76°)
OKLaboklab(69.22% 0.0895 -0.1502)
OKLCHoklch(69.22% 0.175 300.8)
XYZxyz(41.7708, 30.6893, 90.8939)
Luminance0.3069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EF6 #C5F67E
analogous
#7E89F6 #AF7EF6 #EB7EF6
triadic
#AF7EF6 #F6AF7E #7EF6AF
tetradic
#AF7EF6 #F67E89 #C5F67E #7EF6EB
square
#AF7EF6 #F67E89 #C5F67E #7EF6EB
split-complementary
#AF7EF6 #F6EB7E #89F67E
monochromatic
#6910E9 #8C45F2 #AF7EF6 #D2B7FA #EDE2FD

Accessibility & contrast

On white

2.94
#AF7EF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#AF7EF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EF6
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EF6#FFFFFF#000000##000000
##AF7EF61.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5796FA
Deuteranopia (green-blind)
#6496F3
Tritanopia (blue-blind)
#A194AF
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7ef6;
/* rgb */ color: rgb(175, 126, 246);
/* oklch */ color: oklch(69.2% 0.175 300.8);
Tailwind
colors: {
  custom: {
    50: '#caa4fa',
    500: '#af7ef6',
    950: '#000000',
  },
}
SCSS
$custom: #af7ef6;
$custom-light: #caa4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ef6",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 264.5,
    "s": 86.957,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69217,
    "c": 0.17484,
    "h": 300.8
  },
  "luminance": 0.30689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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