#AF5BED#AF5BED

#AF5BED is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.6% C 0.216 H 307.9°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF5BED
RGBrgb(175, 91, 237)
HSLhsl(275, 80%, 64%)
HSVhsv(275, 62%, 93%)
CMYKcmyk(26.2%, 61.6%, 0%, 7.1%)
CIE-LABlab(54.77, 59.05, -60.35)
CIE-LCHlch(54.77, 84.43, 314.37°)
OKLaboklab(63.56% 0.1327 -0.1704)
OKLCHoklch(63.56% 0.216 307.9)
XYZxyz(36.7032, 22.7111, 82.5545)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BED #99ED5B
analogous
#665BED #AF5BED #ED5BE2
triadic
#AF5BED #EDAF5B #5BEDAF
tetradic
#AF5BED #ED665B #99ED5B #5BE2ED
square
#AF5BED #ED665B #99ED5B #5BE2ED
split-complementary
#AF5BED #E2ED5B #5BED66
monochromatic
#7314B9 #9424E7 #AF5BED #CA92F3 #E5C9F9

Accessibility & contrast

On white

3.79
#AF5BED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#AF5BED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BED
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BED#FFFFFF#000000##000000
##AF5BED1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0680F2
Deuteranopia (green-blind)
#4284EA
Tritanopia (blue-blind)
#A6789C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5bed;
/* rgb */ color: rgb(175, 91, 237);
/* oklch */ color: oklch(63.6% 0.216 307.9);
Tailwind
colors: {
  custom: {
    50: '#cb8ef4',
    500: '#af5bed',
    950: '#000000',
  },
}
SCSS
$custom: #af5bed;
$custom-light: #cb8ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bed",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 237
  },
  "hsl": {
    "h": 274.521,
    "s": 80.22,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6356,
    "c": 0.21596,
    "h": 307.9
  },
  "luminance": 0.22711
}

Semantic roles & 50–950 ramp

primary
#AF5BED
secondary
#CEEBB9
accent
#DD0963
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5BED

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

Preview Lab → · Contrast checker → · Palette generator →

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