#AF40FF#AF40FF

#AF40FF is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.8% C 0.265 H 306.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AF40FF
RGBrgb(175, 64, 255)
HSLhsl(275, 100%, 63%)
HSVhsv(275, 75%, 100%)
CMYKcmyk(31.4%, 74.9%, 0%, 0%)
CIE-LABlab(51.84, 74.50, -75.13)
CIE-LCHlch(51.84, 105.81, 314.76°)
OKLaboklab(61.84% 0.1574 -0.2137)
OKLCHoklch(61.84% 0.265 306.4)
XYZxyz(37.5586, 20.0011, 96.4703)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40FF #90FF40
analogous
#4F40FF #AF40FF #FF40F0
triadic
#AF40FF #FFAF40 #40FFAF
tetradic
#AF40FF #FF4F40 #90FF40 #40F0FF
square
#AF40FF #FF4F40 #90FF40 #40F0FF
split-complementary
#AF40FF #F0FF40 #40FF4F
monochromatic
#7200C5 #9503FF #AF40FF #C97DFF #E2BAFF

Accessibility & contrast

On white

4.20
#AF40FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AF40FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF40FF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40FF#FFFFFF#000000##000000
##AF40FF1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078FF
Deuteranopia (green-blind)
#007CFB
Tritanopia (blue-blind)
#A1709E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af40ff;
/* rgb */ color: rgb(175, 64, 255);
/* oklch */ color: oklch(61.8% 0.265 306.4);
Tailwind
colors: {
  custom: {
    50: '#cd80ff',
    500: '#af40ff',
    950: '#000000',
  },
}
SCSS
$custom: #af40ff;
$custom-light: #cd80ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af40ff",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 274.869,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61843,
    "c": 0.26539,
    "h": 306.4
  },
  "luminance": 0.20001
}

Semantic roles & 50–950 ramp

primary
#AF40FF
secondary
#C8F0AB
accent
#E60060
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B18
muted
#837C86

Preview Lab

Preview with #AF40FF

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

Preview Lab → · Contrast checker → · Palette generator →

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