#AF5FBD#AF5FBD

#AF5FBD is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.4% C 0.160 H 321.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF5FBD
RGBrgb(175, 95, 189)
HSLhsl(291, 42%, 56%)
HSVhsv(291, 50%, 74%)
CMYKcmyk(7.4%, 49.7%, 0%, 25.9%)
CIE-LABlab(52.92, 46.94, -36.04)
CIE-LCHlch(52.92, 59.18, 322.48°)
OKLaboklab(61.36% 0.1252 -0.0996)
OKLCHoklch(61.36% 0.16 321.5)
XYZxyz(30.9557, 20.9738, 50.5520)
Luminance0.2097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FBD #6DBD5F
analogous
#805FBD #AF5FBD #BD5F9C
triadic
#AF5FBD #BDAF5F #5FBDAF
tetradic
#AF5FBD #BD805F #6DBD5F #5F9CBD
square
#AF5FBD #BD805F #6DBD5F #5F9CBD
split-complementary
#AF5FBD #9CBD5F #5FBD80
monochromatic
#682F72 #90419E #AF5FBD #C58ACF #DAB6E1

Accessibility & contrast

On white

4.04
#AF5FBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#AF5FBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FBD
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FBD#FFFFFF#000000##000000
##AF5FBD1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5179C0
Deuteranopia (green-blind)
#6981BA
Tritanopia (blue-blind)
#B16B85
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5fbd;
/* rgb */ color: rgb(175, 95, 189);
/* oklch */ color: oklch(61.4% 0.160 321.5);
Tailwind
colors: {
  custom: {
    50: '#c98fd1',
    500: '#af5fbd',
    950: '#000000',
  },
}
SCSS
$custom: #af5fbd;
$custom-light: #c98fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fbd",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 189
  },
  "hsl": {
    "h": 291.064,
    "s": 41.593,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61362,
    "c": 0.15994,
    "h": 321.5
  },
  "luminance": 0.20973
}

Semantic roles & 50–950 ramp

primary
#AF5FBD
secondary
#AECFA8
accent
#D15669
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130D14
muted
#827D82

Preview Lab

Preview with #AF5FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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