#AF5FCB#AF5FCB

#AF5FCB is a light, vivid purple. Relative luminance 0.216; OKLCH L 62.1% C 0.174 H 316.6°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#AF5FCB
RGBrgb(175, 95, 203)
HSLhsl(284, 51%, 58%)
HSVhsv(284, 53%, 80%)
CMYKcmyk(13.8%, 53.2%, 0%, 20.4%)
CIE-LABlab(53.61, 49.76, -42.98)
CIE-LCHlch(53.61, 65.75, 319.18°)
OKLaboklab(62.1% 0.1268 -0.1197)
OKLCHoklch(62.1% 0.174 316.6)
XYZxyz(32.5493, 21.6113, 58.9451)
Luminance0.2161 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FCB #7BCB5F
analogous
#795FCB #AF5FCB #CB5FB1
triadic
#AF5FCB #CBAF5F #5FCBAF
tetradic
#AF5FCB #CB795F #7BCB5F #5FB1CB
square
#AF5FCB #CB795F #7BCB5F #5FB1CB
split-complementary
#AF5FCB #B1CB5F #5FCB79
monochromatic
#6D2B85 #933AB3 #AF5FCB #C68DDA #DDBBE9

Accessibility & contrast

On white

3.95
#AF5FCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#AF5FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FCB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FCB#FFFFFF#000000##000000
##AF5FCB1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#477BCF
Deuteranopia (green-blind)
#6183C8
Tritanopia (blue-blind)
#AE708C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5fcb;
/* rgb */ color: rgb(175, 95, 203);
/* oklch */ color: oklch(62.1% 0.174 316.6);
Tailwind
colors: {
  custom: {
    50: '#c98fdb',
    500: '#af5fcb',
    950: '#000000',
  },
}
SCSS
$custom: #af5fcb;
$custom-light: #c98fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fcb",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 284.444,
    "s": 50.943,
    "l": 58.431
  },
  "oklch": {
    "l": 0.62097,
    "c": 0.17434,
    "h": 316.6
  },
  "luminance": 0.2161
}

Semantic roles & 50–950 ramp

primary
#AF5FCB
secondary
#B9D8AD
accent
#DA4D72
background
#FCF9FD
surface
#F9F1FB
border
#D2CBD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #AF5FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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