#AF5BB2#AF5BB2

#AF5BB2 is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.2% C 0.156 H 326.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF5BB2
RGBrgb(175, 91, 178)
HSLhsl(298, 36%, 53%)
HSVhsv(298, 49%, 70%)
CMYKcmyk(1.7%, 48.9%, 0%, 30.2%)
CIE-LABlab(51.62, 46.88, -31.70)
CIE-LCHlch(51.62, 56.59, 325.93°)
OKLaboklab(60.23% 0.1291 -0.0871)
OKLCHoklch(60.23% 0.156 326)
XYZxyz(29.4555, 19.8120, 44.3834)
Luminance0.1981 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BB2 #5EB25B
analogous
#835BB2 #AF5BB2 #B25B89
triadic
#AF5BB2 #B2AF5B #5BB2AF
tetradic
#AF5BB2 #B2835B #5EB25B #5B89B2
square
#AF5BB2 #B2835B #5EB25B #5B89B2
split-complementary
#AF5BB2 #89B25B #5BB283
monochromatic
#622F64 #8B428D #AF5BB2 #C385C6 #D8AED9

Accessibility & contrast

On white

4.23
#AF5BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AF5BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BB2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BB2#FFFFFF#000000##000000
##AF5BB21.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5274B5
Deuteranopia (green-blind)
#6B7FAF
Tritanopia (blue-blind)
#B3657E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5bb2;
/* rgb */ color: rgb(175, 91, 178);
/* oklch */ color: oklch(60.2% 0.156 326.0);
Tailwind
colors: {
  custom: {
    50: '#c98cc9',
    500: '#af5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #af5bb2;
$custom-light: #c98cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bb2",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 297.931,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60234,
    "c": 0.15576,
    "h": 326
  },
  "luminance": 0.1981
}

Semantic roles & 50–950 ramp

primary
#AF5BB2
secondary
#A3C7A2
accent
#CC5C60
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AF5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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