#AF5CDB#AF5CDB

#AF5CDB is a light, vivid violet. Relative luminance 0.219; OKLCH L 62.6% C 0.196 H 312.2°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF5CDB
RGBrgb(175, 92, 219)
HSLhsl(279, 64%, 61%)
HSVhsv(279, 58%, 86%)
CMYKcmyk(20.1%, 58%, 0%, 14.1%)
CIE-LABlab(53.90, 54.64, -51.61)
CIE-LCHlch(53.90, 75.16, 316.63°)
OKLaboklab(62.59% 0.1316 -0.1448)
OKLCHoklch(62.59% 0.196 312.2)
XYZxyz(34.2903, 21.8836, 69.4217)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CDB #88DB5C
analogous
#6F5CDB #AF5CDB #DB5CC7
triadic
#AF5CDB #DBAF5C #5CDBAF
tetradic
#AF5CDB #DB6F5C #88DB5C #5CC7DB
square
#AF5CDB #DB6F5C #88DB5C #5CC7DB
split-complementary
#AF5CDB #C7DB5C #5CDB6F
monochromatic
#71229A #952DCD #AF5CDB #C88EE6 #E0C0F1

Accessibility & contrast

On white

3.91
#AF5CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#AF5CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CDB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CDB#FFFFFF#000000##000000
##AF5CDB1.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#337DDF
Deuteranopia (green-blind)
#5483D8
Tritanopia (blue-blind)
#AA7393
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5cdb;
/* rgb */ color: rgb(175, 92, 219);
/* oklch */ color: oklch(62.6% 0.196 312.2);
Tailwind
colors: {
  custom: {
    50: '#ca8ee7',
    500: '#af5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #af5cdb;
$custom-light: #ca8ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cdb",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 279.213,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.62589,
    "c": 0.19568,
    "h": 312.2
  },
  "luminance": 0.21883
}

Semantic roles & 50–950 ramp

primary
#AF5CDB
secondary
#C2E1B1
accent
#CC1A57
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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