#AF45E8#AF45E8

#AF45E8 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.7% C 0.239 H 311.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF45E8
RGBrgb(175, 69, 232)
HSLhsl(279, 78%, 59%)
HSVhsv(279, 70%, 91%)
CMYKcmyk(24.6%, 70.3%, 0%, 9%)
CIE-LABlab(50.92, 67.78, -63.75)
CIE-LCHlch(50.92, 93.05, 316.76°)
OKLaboklab(60.69% 0.1567 -0.1803)
OKLCHoklch(60.69% 0.239 311)
XYZxyz(34.3700, 19.1972, 78.2232)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45E8 #7EE845
analogous
#5E45E8 #AF45E8 #E845D0
triadic
#AF45E8 #E8AF45 #45E8AF
tetradic
#AF45E8 #E85E45 #7EE845 #45D0E8
square
#AF45E8 #E85E45 #7EE845 #45D0E8
split-complementary
#AF45E8 #D0E845 #45E85E
monochromatic
#6E149F #941AD5 #AF45E8 #C67BEF #DEB2F5

Accessibility & contrast

On white

4.34
#AF45E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AF45E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45E8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45E8#FFFFFF#000000##000000
##AF45E81.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#2C7BE4
Tritanopia (blue-blind)
#A86992
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af45e8;
/* rgb */ color: rgb(175, 69, 232);
/* oklch */ color: oklch(60.7% 0.239 311.0);
Tailwind
colors: {
  custom: {
    50: '#cc81f0',
    500: '#af45e8',
    950: '#000000',
  },
}
SCSS
$custom: #af45e8;
$custom-light: #cc81f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af45e8",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 279.018,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60689,
    "c": 0.23888,
    "h": 311
  },
  "luminance": 0.19196
}

Semantic roles & 50–950 ramp

primary
#AF45E8
secondary
#BBE4A4
accent
#F43377
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF45E8

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

Preview Lab → · Contrast checker → · Palette generator →

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