#AF45CB#AF45CB

#AF45CB is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.212 H 318.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF45CB
RGBrgb(175, 69, 203)
HSLhsl(287, 56%, 53%)
HSVhsv(287, 66%, 80%)
CMYKcmyk(13.8%, 66%, 0%, 20.4%)
CIE-LABlab(49.11, 61.99, -50.14)
CIE-LCHlch(49.11, 79.73, 321.03°)
OKLaboklab(58.82% 0.159 -0.1404)
OKLCHoklch(58.82% 0.212 318.5)
XYZxyz(30.5854, 17.6833, 58.2905)
Luminance0.1768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45CB #61CB45
analogous
#6C45CB #AF45CB #CB45A4
triadic
#AF45CB #CBAF45 #45CBAF
tetradic
#AF45CB #CB6C45 #61CB45 #45A4CB
square
#AF45CB #CB6C45 #61CB45 #45A4CB
split-complementary
#AF45CB #A4CB45 #45CB6C
monochromatic
#632175 #8C2EA5 #AF45CB #C475D8 #D8A5E6

Accessibility & contrast

On white

4.63
#AF45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AF45CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45CB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45CB#FFFFFF#000000##FFFFFF
##AF45CB1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116ECF
Deuteranopia (green-blind)
#4C78C8
Tritanopia (blue-blind)
#AF5D82
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af45cb;
/* rgb */ color: rgb(175, 69, 203);
/* oklch */ color: oklch(58.8% 0.212 318.5);
Tailwind
colors: {
  custom: {
    50: '#ca80db',
    500: '#af45cb',
    950: '#000000',
  },
}
SCSS
$custom: #af45cb;
$custom-light: #ca80db;
$custom-dark: #000000;
JSON
{
  "hex": "#af45cb",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 287.463,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58819,
    "c": 0.21208,
    "h": 318.5
  },
  "luminance": 0.17682
}

Semantic roles & 50–950 ramp

primary
#AF45CB
secondary
#A5D399
accent
#E04868
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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