#AF4AEB#AF4AEB

#AF4AEB is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.4% C 0.236 H 309.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AF4AEB
RGBrgb(175, 74, 235)
HSLhsl(278, 80%, 61%)
HSVhsv(278, 69%, 92%)
CMYKcmyk(25.5%, 68.5%, 0%, 7.8%)
CIE-LABlab(51.85, 66.34, -63.93)
CIE-LCHlch(51.85, 92.13, 316.06°)
OKLaboklab(61.42% 0.1514 -0.1809)
OKLCHoklch(61.42% 0.236 309.9)
XYZxyz(35.1204, 20.0104, 80.5934)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AEB #86EB4A
analogous
#5E4AEB #AF4AEB #EB4AD6
triadic
#AF4AEB #EBAF4A #4AEBAF
tetradic
#AF4AEB #EB5E4A #86EB4A #4AD6EB
square
#AF4AEB #EB5E4A #86EB4A #4AD6EB
split-complementary
#AF4AEB #D6EB4A #4AEB5E
monochromatic
#7013A8 #9519DF #AF4AEB #C781F1 #E0B8F7

Accessibility & contrast

On white

4.20
#AF4AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AF4AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4AEB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AEB#FFFFFF#000000##000000
##AF4AEB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#2E7DE7
Tritanopia (blue-blind)
#A76D95
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4aeb;
/* rgb */ color: rgb(175, 74, 235);
/* oklch */ color: oklch(61.4% 0.236 309.9);
Tailwind
colors: {
  custom: {
    50: '#cc84f2',
    500: '#af4aeb',
    950: '#000000',
  },
}
SCSS
$custom: #af4aeb;
$custom-light: #cc84f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4aeb",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 235
  },
  "hsl": {
    "h": 277.64,
    "s": 80.1,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61416,
    "c": 0.23585,
    "h": 309.9
  },
  "luminance": 0.2001
}

Semantic roles & 50–950 ramp

primary
#AF4AEB
secondary
#C1E7AA
accent
#DC0958
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF4AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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