#AF46E5#AF46E5

#AF46E5 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.6% C 0.235 H 311.6°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF46E5
RGBrgb(175, 70, 229)
HSLhsl(280, 75%, 59%)
HSVhsv(280, 69%, 90%)
CMYKcmyk(23.6%, 69.4%, 0%, 10.2%)
CIE-LABlab(50.86, 66.76, -62.14)
CIE-LCHlch(50.86, 91.20, 317.05°)
OKLaboklab(60.59% 0.1561 -0.1756)
OKLCHoklch(60.59% 0.235 311.6)
XYZxyz(34.0096, 19.1523, 76.0187)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46E5 #7CE546
analogous
#5F46E5 #AF46E5 #E546CB
triadic
#AF46E5 #E5AF46 #46E5AF
tetradic
#AF46E5 #E55F46 #7CE546 #46CBE5
square
#AF46E5 #E55F46 #7CE546 #46CBE5
split-complementary
#AF46E5 #CBE546 #46E55F
monochromatic
#6E169B #941DD0 #AF46E5 #C67CED #DDB1F4

Accessibility & contrast

On white

4.35
#AF46E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#AF46E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46E5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46E5#FFFFFF#000000##000000
##AF46E51.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074EA
Deuteranopia (green-blind)
#327BE1
Tritanopia (blue-blind)
#A86891
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af46e5;
/* rgb */ color: rgb(175, 70, 229);
/* oklch */ color: oklch(60.6% 0.235 311.6);
Tailwind
colors: {
  custom: {
    50: '#cb82ee',
    500: '#af46e5',
    950: '#000000',
  },
}
SCSS
$custom: #af46e5;
$custom-light: #cb82ee;
$custom-dark: #000000;
JSON
{
  "hex": "#af46e5",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 229
  },
  "hsl": {
    "h": 279.623,
    "s": 75.355,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60589,
    "c": 0.23491,
    "h": 311.6
  },
  "luminance": 0.19151
}

Semantic roles & 50–950 ramp

primary
#AF46E5
secondary
#B9E3A4
accent
#F23676
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF46E5

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

Preview Lab → · Contrast checker → · Palette generator →

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