#AF4FE2#AF4FE2

#AF4FE2 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.4% C 0.221 H 311.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF4FE2
RGBrgb(175, 79, 226)
HSLhsl(279, 72%, 60%)
HSVhsv(279, 65%, 89%)
CMYKcmyk(22.6%, 65%, 0%, 11.4%)
CIE-LABlab(52.06, 62.27, -58.52)
CIE-LCHlch(52.06, 85.45, 316.78°)
OKLaboklab(61.39% 0.1468 -0.165)
OKLCHoklch(61.39% 0.221 311.7)
XYZxyz(34.2001, 20.1978, 74.0337)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FE2 #82E24F
analogous
#664FE2 #AF4FE2 #E24FCB
triadic
#AF4FE2 #E2AF4F #4FE2AF
tetradic
#AF4FE2 #E2664F #82E24F #4FCBE2
square
#AF4FE2 #E2664F #82E24F #4FCBE2
split-complementary
#AF4FE2 #CBE24F #4FE266
monochromatic
#6F1A9D #9522D1 #AF4FE2 #C784EB #DFB8F3

Accessibility & contrast

On white

4.17
#AF4FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AF4FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FE2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FE2#FFFFFF#000000##000000
##AF4FE21.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#407EDF
Tritanopia (blue-blind)
#A96C92
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4fe2;
/* rgb */ color: rgb(175, 79, 226);
/* oklch */ color: oklch(61.4% 0.221 311.7);
Tailwind
colors: {
  custom: {
    50: '#cb86ec',
    500: '#af4fe2',
    950: '#000000',
  },
}
SCSS
$custom: #af4fe2;
$custom-light: #cb86ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fe2",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 279.184,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61385,
    "c": 0.22087,
    "h": 311.7
  },
  "luminance": 0.20197
}

Semantic roles & 50–950 ramp

primary
#AF4FE2
secondary
#BEE3AA
accent
#EE3978
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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