#AF59CB#AF59CB

#AF59CB is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.3% C 0.184 H 317.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF59CB
RGBrgb(175, 89, 203)
HSLhsl(285, 52%, 57%)
HSVhsv(285, 56%, 80%)
CMYKcmyk(13.8%, 56.2%, 0%, 20.4%)
CIE-LABlab(52.48, 52.78, -44.78)
CIE-LCHlch(52.48, 69.22, 319.69°)
OKLaboklab(61.26% 0.1347 -0.1249)
OKLCHoklch(61.26% 0.184 317.2)
XYZxyz(32.0295, 20.5717, 58.7719)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF59CB #75CB59
analogous
#7659CB #AF59CB #CB59AE
triadic
#AF59CB #CBAF59 #59CBAF
tetradic
#AF59CB #CB7659 #75CB59 #59AECB
square
#AF59CB #CB7659 #75CB59 #59AECB
split-complementary
#AF59CB #AECB59 #59CB76
monochromatic
#6B2881 #9237B0 #AF59CB #C588DA #DCB6E8

Accessibility & contrast

On white

4.11
#AF59CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AF59CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF59CB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF59CB#FFFFFF#000000##000000
##AF59CB1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E78CF
Deuteranopia (green-blind)
#5C80C8
Tritanopia (blue-blind)
#AE6B8A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af59cb;
/* rgb */ color: rgb(175, 89, 203);
/* oklch */ color: oklch(61.3% 0.184 317.2);
Tailwind
colors: {
  custom: {
    50: '#c98cdb',
    500: '#af59cb',
    950: '#000000',
  },
}
SCSS
$custom: #af59cb;
$custom-light: #c98cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#af59cb",
  "rgb": {
    "r": 175,
    "g": 89,
    "b": 203
  },
  "hsl": {
    "h": 285.263,
    "s": 52.294,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61264,
    "c": 0.18369,
    "h": 317.2
  },
  "luminance": 0.20571
}

Semantic roles & 50–950 ramp

primary
#AF59CB
secondary
#B4D7A9
accent
#DC4C6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF59CB

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

Preview Lab → · Contrast checker → · Palette generator →

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