#AF5CB2#AF5CB2

#AF5CB2 is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.4% C 0.154 H 326.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AF5CB2
RGBrgb(175, 92, 178)
HSLhsl(298, 36%, 53%)
HSVhsv(298, 48%, 70%)
CMYKcmyk(1.7%, 48.3%, 0%, 30.2%)
CIE-LABlab(51.82, 46.37, -31.39)
CIE-LCHlch(51.82, 55.99, 325.90°)
OKLaboklab(60.38% 0.1277 -0.0862)
OKLCHoklch(60.38% 0.154 326)
XYZxyz(29.5416, 19.9841, 44.4121)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CB2 #5FB25C
analogous
#845CB2 #AF5CB2 #B25C8A
triadic
#AF5CB2 #B2AF5C #5CB2AF
tetradic
#AF5CB2 #B2845C #5FB25C #5C8AB2
square
#AF5CB2 #B2845C #5FB25C #5C8AB2
split-complementary
#AF5CB2 #8AB25C #5CB284
monochromatic
#622F64 #8B438E #AF5CB2 #C386C6 #D8AFD9

Accessibility & contrast

On white

4.20
#AF5CB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AF5CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CB2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CB2#FFFFFF#000000##000000
##AF5CB21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#6B7FAF
Tritanopia (blue-blind)
#B3667F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af5cb2;
/* rgb */ color: rgb(175, 92, 178);
/* oklch */ color: oklch(60.4% 0.154 326.0);
Tailwind
colors: {
  custom: {
    50: '#c98dc9',
    500: '#af5cb2',
    950: '#000000',
  },
}
SCSS
$custom: #af5cb2;
$custom-light: #c98dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cb2",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 297.907,
    "s": 35.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60379,
    "c": 0.1541,
    "h": 326
  },
  "luminance": 0.19983
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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