#AF5FB2#AF5FB2

#AF5FB2 is a mid, vivid purple. Relative luminance 0.205; OKLCH L 60.8% C 0.149 H 325.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AF5FB2
RGBrgb(175, 95, 178)
HSLhsl(298, 35%, 54%)
HSVhsv(298, 47%, 70%)
CMYKcmyk(1.7%, 46.6%, 0%, 30.2%)
CIE-LABlab(52.41, 44.81, -30.47)
CIE-LCHlch(52.41, 54.19, 325.79°)
OKLaboklab(60.82% 0.1234 -0.0836)
OKLCHoklch(60.82% 0.149 325.9)
XYZxyz(29.8066, 20.5142, 44.5005)
Luminance0.2051 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FB2 #62B25F
analogous
#855FB2 #AF5FB2 #B25F8B
triadic
#AF5FB2 #B2AF5F #5FB2AF
tetradic
#AF5FB2 #B2855F #62B25F #5F8BB2
square
#AF5FB2 #B2855F #62B25F #5F8BB2
split-complementary
#AF5FB2 #8BB25F #5FB285
monochromatic
#643166 #8C458F #AF5FB2 #C488C6 #D8B2DA

Accessibility & contrast

On white

4.12
#AF5FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AF5FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FB2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FB2#FFFFFF#000000##000000
##AF5FB21.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5777B5
Deuteranopia (green-blind)
#6E81AF
Tritanopia (blue-blind)
#B36880
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af5fb2;
/* rgb */ color: rgb(175, 95, 178);
/* oklch */ color: oklch(60.8% 0.149 325.9);
Tailwind
colors: {
  custom: {
    50: '#c98fc9',
    500: '#af5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #af5fb2;
$custom-light: #c98fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fb2",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 297.831,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.6082,
    "c": 0.14904,
    "h": 325.9
  },
  "luminance": 0.20513
}

Semantic roles & 50–950 ramp

primary
#AF5FB2
secondary
#A6C8A5
accent
#CB5D61
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130D13
muted
#827D82

Preview Lab

Preview with #AF5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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