#AF4DE2#AF4DE2

#AF4DE2 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.2% C 0.223 H 311.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF4DE2
RGBrgb(175, 77, 226)
HSLhsl(279, 72%, 59%)
HSVhsv(279, 66%, 89%)
CMYKcmyk(22.6%, 65.9%, 0%, 11.4%)
CIE-LABlab(51.74, 63.16, -59.04)
CIE-LCHlch(51.74, 86.45, 316.93°)
OKLaboklab(61.15% 0.149 -0.1665)
OKLCHoklch(61.15% 0.223 311.8)
XYZxyz(34.0580, 19.9136, 73.9863)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DE2 #80E24D
analogous
#654DE2 #AF4DE2 #E24DCB
triadic
#AF4DE2 #E2AF4D #4DE2AF
tetradic
#AF4DE2 #E2654D #80E24D #4DCBE2
square
#AF4DE2 #E2654D #80E24D #4DCBE2
split-complementary
#AF4DE2 #CBE24D #4DE265
monochromatic
#6F199B #9422D0 #AF4DE2 #C782EB #DEB6F3

Accessibility & contrast

On white

4.21
#AF4DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AF4DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4DE2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DE2#FFFFFF#000000##000000
##AF4DE21.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#3E7DDF
Tritanopia (blue-blind)
#A96B91
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4de2;
/* rgb */ color: rgb(175, 77, 226);
/* oklch */ color: oklch(61.2% 0.223 311.8);
Tailwind
colors: {
  custom: {
    50: '#cb85ec',
    500: '#af4de2',
    950: '#000000',
  },
}
SCSS
$custom: #af4de2;
$custom-light: #cb85ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af4de2",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 226
  },
  "hsl": {
    "h": 279.463,
    "s": 71.981,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61154,
    "c": 0.22345,
    "h": 311.8
  },
  "luminance": 0.19913
}

Semantic roles & 50–950 ramp

primary
#AF4DE2
secondary
#BCE2A8
accent
#EF3977
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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