#AF46CA#AF46CA

#AF46CA is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 58.9% C 0.210 H 318.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF46CA
RGBrgb(175, 70, 202)
HSLhsl(288, 55%, 53%)
HSVhsv(288, 65%, 79%)
CMYKcmyk(13.4%, 65.3%, 0%, 20.8%)
CIE-LABlab(49.20, 61.37, -49.41)
CIE-LCHlch(49.20, 78.79, 321.16°)
OKLaboklab(58.87% 0.1579 -0.1383)
OKLCHoklch(58.87% 0.21 318.8)
XYZxyz(30.5286, 17.7599, 57.6856)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46CA #61CA46
analogous
#6D46CA #AF46CA #CA46A3
triadic
#AF46CA #CAAF46 #46CAAF
tetradic
#AF46CA #CA6D46 #61CA46 #46A3CA
square
#AF46CA #CA6D46 #61CA46 #46A3CA
split-complementary
#AF46CA #A3CA46 #46CA6D
monochromatic
#632174 #8C2FA4 #AF46CA #C476D8 #D8A5E5

Accessibility & contrast

On white

4.61
#AF46CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#AF46CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46CA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46CA#FFFFFF#000000##FFFFFF
##AF46CA1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176ECE
Deuteranopia (green-blind)
#4E78C7
Tritanopia (blue-blind)
#AF5D82
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af46ca;
/* rgb */ color: rgb(175, 70, 202);
/* oklch */ color: oklch(58.9% 0.210 318.8);
Tailwind
colors: {
  custom: {
    50: '#ca81db',
    500: '#af46ca',
    950: '#000000',
  },
}
SCSS
$custom: #af46ca;
$custom-light: #ca81db;
$custom-dark: #000000;
JSON
{
  "hex": "#af46ca",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 287.727,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58868,
    "c": 0.20986,
    "h": 318.8
  },
  "luminance": 0.17759
}

Semantic roles & 50–950 ramp

primary
#AF46CA
secondary
#A5D29A
accent
#DF4968
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF46CA

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

Preview Lab → · Contrast checker → · Palette generator →

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