#AF4FE5#AF4FE5

#AF4FE5 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.6% C 0.224 H 310.9°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AF4FE5
RGBrgb(175, 79, 229)
HSLhsl(278, 74%, 60%)
HSVhsv(278, 66%, 90%)
CMYKcmyk(23.6%, 65.5%, 0%, 10.2%)
CIE-LABlab(52.25, 62.90, -59.92)
CIE-LCHlch(52.25, 86.87, 316.39°)
OKLaboklab(61.58% 0.1466 -0.1691)
OKLCHoklch(61.58% 0.224 310.9)
XYZxyz(34.6154, 20.3639, 76.2207)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FE5 #85E54F
analogous
#644FE5 #AF4FE5 #E54FD0
triadic
#AF4FE5 #E5AF4F #4FE5AF
tetradic
#AF4FE5 #E5644F #85E54F #4FD0E5
square
#AF4FE5 #E5644F #85E54F #4FD0E5
split-complementary
#AF4FE5 #D0E54F #4FE564
monochromatic
#7018A2 #9520D7 #AF4FE5 #C784ED #DFBAF5

Accessibility & contrast

On white

4.14
#AF4FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AF4FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FE5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FE5#FFFFFF#000000##000000
##AF4FE51.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EA
Deuteranopia (green-blind)
#3D7EE2
Tritanopia (blue-blind)
#A86E94
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4fe5;
/* rgb */ color: rgb(175, 79, 229);
/* oklch */ color: oklch(61.6% 0.224 310.9);
Tailwind
colors: {
  custom: {
    50: '#cb87ee',
    500: '#af4fe5',
    950: '#000000',
  },
}
SCSS
$custom: #af4fe5;
$custom-light: #cb87ee;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fe5",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 229
  },
  "hsl": {
    "h": 278.4,
    "s": 74.257,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61578,
    "c": 0.22381,
    "h": 310.9
  },
  "luminance": 0.20363
}

Semantic roles & 50–950 ramp

primary
#AF4FE5
secondary
#C0E5AB
accent
#D60F57
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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