#AF45EF#AF45EF

#AF45EF is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 61.2% C 0.245 H 309.4°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF45EF
RGBrgb(175, 69, 239)
HSLhsl(277, 84%, 60%)
HSVhsv(277, 71%, 94%)
CMYKcmyk(26.8%, 71.1%, 0%, 6.3%)
CIE-LABlab(51.39, 69.24, -66.93)
CIE-LCHlch(51.39, 96.30, 315.97°)
OKLaboklab(61.17% 0.1558 -0.1896)
OKLCHoklch(61.17% 0.245 309.4)
XYZxyz(35.3842, 19.6029, 83.5643)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45EF #85EF45
analogous
#5A45EF #AF45EF #EF45DA
triadic
#AF45EF #EFAF45 #45EFAF
tetradic
#AF45EF #EF5A45 #85EF45 #45DAEF
square
#AF45EF #EF5A45 #85EF45 #45DAEF
split-complementary
#AF45EF #DAEF45 #45EF5A
monochromatic
#700FAB #9514E3 #AF45EF #C77DF4 #DFB6F9

Accessibility & contrast

On white

4.27
#AF45EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AF45EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45EF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45EF#FFFFFF#000000##000000
##AF45EF1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#1C7CEB
Tritanopia (blue-blind)
#A66C96
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af45ef;
/* rgb */ color: rgb(175, 69, 239);
/* oklch */ color: oklch(61.2% 0.245 309.4);
Tailwind
colors: {
  custom: {
    50: '#cc82f5',
    500: '#af45ef',
    950: '#000000',
  },
}
SCSS
$custom: #af45ef;
$custom-light: #cc82f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ef",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 239
  },
  "hsl": {
    "h": 277.412,
    "s": 84.158,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6117,
    "c": 0.24541,
    "h": 309.4
  },
  "luminance": 0.19602
}

Semantic roles & 50–950 ramp

primary
#AF45EF
secondary
#C0E8A7
accent
#E10558
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF45EF

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

Preview Lab → · Contrast checker → · Palette generator →

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