#AF4DE5#AF4DE5

#AF4DE5 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.3% C 0.226 H 311.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF4DE5
RGBrgb(175, 77, 229)
HSLhsl(279, 75%, 60%)
HSVhsv(279, 66%, 90%)
CMYKcmyk(23.6%, 66.4%, 0%, 10.2%)
CIE-LABlab(51.93, 63.79, -60.43)
CIE-LCHlch(51.93, 87.87, 316.55°)
OKLaboklab(61.35% 0.1488 -0.1706)
OKLCHoklch(61.35% 0.226 311.1)
XYZxyz(34.4733, 20.0797, 76.1733)
Luminance0.2008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DE5 #83E54D
analogous
#634DE5 #AF4DE5 #E54DCF
triadic
#AF4DE5 #E5AF4D #4DE5AF
tetradic
#AF4DE5 #E5634D #83E54D #4DCFE5
square
#AF4DE5 #E5634D #83E54D #4DCFE5
split-complementary
#AF4DE5 #CFE54D #4DE563
monochromatic
#7017A0 #951FD6 #AF4DE5 #C782ED #DFB8F5

Accessibility & contrast

On white

4.19
#AF4DE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#AF4DE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DE5
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DE5#FFFFFF#000000##000000
##AF4DE51.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EA
Deuteranopia (green-blind)
#3A7EE2
Tritanopia (blue-blind)
#A86C93
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4de5;
/* rgb */ color: rgb(175, 77, 229);
/* oklch */ color: oklch(61.3% 0.226 311.1);
Tailwind
colors: {
  custom: {
    50: '#cb85ee',
    500: '#af4de5',
    950: '#000000',
  },
}
SCSS
$custom: #af4de5;
$custom-light: #cb85ee;
$custom-dark: #000000;
JSON
{
  "hex": "#af4de5",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 229
  },
  "hsl": {
    "h": 278.684,
    "s": 74.51,
    "l": 60
  },
  "oklch": {
    "l": 0.61349,
    "c": 0.22637,
    "h": 311.1
  },
  "luminance": 0.20079
}

Semantic roles & 50–950 ramp

primary
#AF4DE5
secondary
#BEE4AA
accent
#F13779
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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