#AF5BBC#AF5BBC

#AF5BBC is a mid, vivid purple. Relative luminance 0.202; OKLCH L 60.7% C 0.165 H 322.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AF5BBC
RGBrgb(175, 91, 188)
HSLhsl(292, 42%, 55%)
HSVhsv(292, 52%, 74%)
CMYKcmyk(6.9%, 51.6%, 0%, 26.3%)
CIE-LABlab(52.09, 48.79, -36.76)
CIE-LCHlch(52.09, 61.09, 323.01°)
OKLaboklab(60.73% 0.1306 -0.1016)
OKLCHoklch(60.73% 0.165 322.1)
XYZxyz(30.4964, 20.2283, 49.8653)
Luminance0.2023 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BBC #68BC5B
analogous
#7F5BBC #AF5BBC #BC5B98
triadic
#AF5BBC #BCAF5B #5BBCAF
tetradic
#AF5BBC #BC7F5B #68BC5B #5B98BC
square
#AF5BBC #BC7F5B #68BC5B #5B98BC
split-complementary
#AF5BBC #98BC5B #5BBC7F
monochromatic
#662D6F #8E3F9B #AF5BBC #C486CE #D9B2E0

Accessibility & contrast

On white

4.16
#AF5BBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AF5BBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BBC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BBC#FFFFFF#000000##000000
##AF5BBC1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C76BF
Deuteranopia (green-blind)
#6680B9
Tritanopia (blue-blind)
#B16883
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af5bbc;
/* rgb */ color: rgb(175, 91, 188);
/* oklch */ color: oklch(60.7% 0.165 322.1);
Tailwind
colors: {
  custom: {
    50: '#c98dd0',
    500: '#af5bbc',
    950: '#000000',
  },
}
SCSS
$custom: #af5bbc;
$custom-light: #c98dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bbc",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 188
  },
  "hsl": {
    "h": 291.959,
    "s": 41.991,
    "l": 54.706
  },
  "oklch": {
    "l": 0.60735,
    "c": 0.16549,
    "h": 322.1
  },
  "luminance": 0.20227
}

Semantic roles & 50–950 ramp

primary
#AF5BBC
secondary
#AACEA5
accent
#D25667
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF5BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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