#AF45EA#AF45EA

#AF45EA is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.8% C 0.241 H 310.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF45EA
RGBrgb(175, 69, 234)
HSLhsl(279, 80%, 59%)
HSVhsv(279, 71%, 92%)
CMYKcmyk(25.2%, 70.5%, 0%, 8.2%)
CIE-LABlab(51.05, 68.20, -64.66)
CIE-LCHlch(51.05, 93.98, 316.52°)
OKLaboklab(60.83% 0.1564 -0.183)
OKLCHoklch(60.83% 0.241 310.5)
XYZxyz(34.6557, 19.3115, 79.7278)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45EA #80EA45
analogous
#5C45EA #AF45EA #EA45D3
triadic
#AF45EA #EAAF45 #45EAAF
tetradic
#AF45EA #EA5C45 #80EA45 #45D3EA
square
#AF45EA #EA5C45 #80EA45 #45D3EA
split-complementary
#AF45EA #D3EA45 #45EA5C
monochromatic
#6F12A2 #9419D9 #AF45EA #C77CF0 #DEB3F6

Accessibility & contrast

On white

4.32
#AF45EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AF45EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45EA
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45EA#FFFFFF#000000##000000
##AF45EA1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#287BE6
Tritanopia (blue-blind)
#A76A93
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af45ea;
/* rgb */ color: rgb(175, 69, 234);
/* oklch */ color: oklch(60.8% 0.241 310.5);
Tailwind
colors: {
  custom: {
    50: '#cc81f2',
    500: '#af45ea',
    950: '#000000',
  },
}
SCSS
$custom: #af45ea;
$custom-light: #cc81f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ea",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 234
  },
  "hsl": {
    "h": 278.545,
    "s": 79.71,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60825,
    "c": 0.24074,
    "h": 310.5
  },
  "luminance": 0.19311
}

Semantic roles & 50–950 ramp

primary
#AF45EA
secondary
#BCE6A5
accent
#F63278
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF45EA

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

Preview Lab → · Contrast checker → · Palette generator →

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