#AF4FF8#AF4FF8

#AF4FF8 is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.8% C 0.242 H 306.7°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF4FF8
RGBrgb(175, 79, 248)
HSLhsl(274, 92%, 64%)
HSVhsv(274, 68%, 97%)
CMYKcmyk(29.4%, 68.1%, 0%, 2.7%)
CIE-LABlab(53.47, 66.98, -68.58)
CIE-LCHlch(53.47, 95.86, 314.32°)
OKLaboklab(62.85% 0.1448 -0.1945)
OKLCHoklch(62.85% 0.243 306.7)
XYZxyz(37.4148, 21.4836, 90.9644)
Luminance0.2148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FF8 #98F84F
analogous
#5B4FF8 #AF4FF8 #F84FEC
triadic
#AF4FF8 #F8AF4F #4FF8AF
tetradic
#AF4FF8 #F85B4F #98F84F #4FECF8
square
#AF4FF8 #F85B4F #98F84F #4FECF8
split-complementary
#AF4FF8 #ECF84F #4FF85B
monochromatic
#7308C5 #9414F6 #AF4FF8 #CA8AFA #E5C5FD

Accessibility & contrast

On white

3.96
#AF4FF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#AF4FF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FF8
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FF8#FFFFFF#000000##000000
##AF4FF81.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFD
Deuteranopia (green-blind)
#1B80F4
Tritanopia (blue-blind)
#A3759E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af4ff8;
/* rgb */ color: rgb(175, 79, 248);
/* oklch */ color: oklch(62.8% 0.242 306.7);
Tailwind
colors: {
  custom: {
    50: '#cc87fb',
    500: '#af4ff8',
    950: '#000000',
  },
}
SCSS
$custom: #af4ff8;
$custom-light: #cc87fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ff8",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 248
  },
  "hsl": {
    "h": 274.083,
    "s": 92.35,
    "l": 64.118
  },
  "oklch": {
    "l": 0.62849,
    "c": 0.2425,
    "h": 306.7
  },
  "luminance": 0.21483
}

Semantic roles & 50–950 ramp

primary
#AF4FF8
secondary
#CDEFB4
accent
#E60063
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF4FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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