#AF4EFE#AF4EFE

#AF4EFE is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 63.2% C 0.250 H 305.5°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF4EFE
RGBrgb(175, 78, 254)
HSLhsl(273, 99%, 65%)
HSVhsv(273, 69%, 100%)
CMYKcmyk(31.1%, 69.3%, 0%, 0.4%)
CIE-LABlab(53.73, 68.72, -71.51)
CIE-LCHlch(53.73, 99.18, 313.86°)
OKLaboklab(63.16% 0.145 -0.2031)
OKLCHoklch(63.16% 0.25 305.5)
XYZxyz(38.2890, 21.7188, 95.9217)
Luminance0.2172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EFE #9DFE4E
analogous
#574EFE #AF4EFE #FE4EF5
triadic
#AF4EFE #FEAF4E #4EFEAF
tetradic
#AF4EFE #FE574E #9DFE4E #4EF5FE
square
#AF4EFE #FE574E #9DFE4E #4EF5FE
split-complementary
#AF4EFE #F5FE4E #4EFE57
monochromatic
#7301D0 #9311FE #AF4EFE #CB8BFE #E6C8FF

Accessibility & contrast

On white

3.93
#AF4EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#AF4EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EFE
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EFE#FFFFFF#000000##000000
##AF4EFE1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0081FA
Tritanopia (blue-blind)
#A177A1
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af4efe;
/* rgb */ color: rgb(175, 78, 254);
/* oklch */ color: oklch(63.2% 0.250 305.5);
Tailwind
colors: {
  custom: {
    50: '#cc87ff',
    500: '#af4efe',
    950: '#000000',
  },
}
SCSS
$custom: #af4efe;
$custom-light: #cc87ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af4efe",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 254
  },
  "hsl": {
    "h": 273.068,
    "s": 98.876,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63157,
    "c": 0.24956,
    "h": 305.5
  },
  "luminance": 0.21718
}

Semantic roles & 50–950 ramp

primary
#AF4EFE
secondary
#D1F2B6
accent
#E60067
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF4EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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