#AF46E7#AF46E7

#AF46E7 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.7% C 0.237 H 311.2°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF46E7
RGBrgb(175, 70, 231)
HSLhsl(279, 77%, 59%)
HSVhsv(279, 70%, 91%)
CMYKcmyk(24.2%, 69.7%, 0%, 9.4%)
CIE-LABlab(51.00, 67.17, -63.06)
CIE-LCHlch(51.00, 92.13, 316.81°)
OKLaboklab(60.72% 0.1558 -0.1783)
OKLCHoklch(60.72% 0.237 311.2)
XYZxyz(34.2904, 19.2646, 77.4979)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46E7 #7EE746
analogous
#5F46E7 #AF46E7 #E746CF
triadic
#AF46E7 #E7AF46 #46E7AF
tetradic
#AF46E7 #E75F46 #7EE746 #46CFE7
square
#AF46E7 #E75F46 #7EE746 #46CFE7
split-complementary
#AF46E7 #CFE746 #46E75F
monochromatic
#6E159E #941CD4 #AF46E7 #C67CEE #DEB2F5

Accessibility & contrast

On white

4.33
#AF46E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#AF46E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF46E7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46E7#FFFFFF#000000##000000
##AF46E71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#2F7BE3
Tritanopia (blue-blind)
#A86992
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af46e7;
/* rgb */ color: rgb(175, 70, 231);
/* oklch */ color: oklch(60.7% 0.237 311.2);
Tailwind
colors: {
  custom: {
    50: '#cb82ef',
    500: '#af46e7',
    950: '#000000',
  },
}
SCSS
$custom: #af46e7;
$custom-light: #cb82ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af46e7",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 231
  },
  "hsl": {
    "h": 279.13,
    "s": 77.033,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60724,
    "c": 0.23678,
    "h": 311.2
  },
  "luminance": 0.19264
}

Semantic roles & 50–950 ramp

primary
#AF46E7
secondary
#BBE4A5
accent
#F43477
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF46E7

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

Preview Lab → · Contrast checker → · Palette generator →

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