#AF45E6#AF45E6

#AF45E6 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 60.6% C 0.237 H 311.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF45E6
RGBrgb(175, 69, 230)
HSLhsl(280, 76%, 59%)
HSVhsv(280, 70%, 90%)
CMYKcmyk(23.9%, 70%, 0%, 9.8%)
CIE-LABlab(50.79, 67.37, -62.83)
CIE-LCHlch(50.79, 92.13, 317.00°)
OKLaboklab(60.55% 0.1569 -0.1776)
OKLCHoklch(60.55% 0.237 311.5)
XYZxyz(34.0876, 19.0842, 76.7355)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45E6 #7CE645
analogous
#5E45E6 #AF45E6 #E645CC
triadic
#AF45E6 #E6AF45 #45E6AF
tetradic
#AF45E6 #E65E45 #7CE645 #45CCE6
square
#AF45E6 #E65E45 #7CE645 #45CCE6
split-complementary
#AF45E6 #CCE645 #45E65E
monochromatic
#6E159C #941CD2 #AF45E6 #C67BED #DDB1F5

Accessibility & contrast

On white

4.36
#AF45E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#AF45E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45E6
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45E6#FFFFFF#000000##000000
##AF45E61.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074EB
Deuteranopia (green-blind)
#2F7BE2
Tritanopia (blue-blind)
#A86891
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af45e6;
/* rgb */ color: rgb(175, 69, 230);
/* oklch */ color: oklch(60.6% 0.237 311.5);
Tailwind
colors: {
  custom: {
    50: '#cb81ef',
    500: '#af45e6',
    950: '#000000',
  },
}
SCSS
$custom: #af45e6;
$custom-light: #cb81ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af45e6",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 279.503,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60553,
    "c": 0.23701,
    "h": 311.5
  },
  "luminance": 0.19083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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