#AF5AF2#AF5AF2

#AF5AF2 is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.8% C 0.223 H 306.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF5AF2
RGBrgb(175, 90, 242)
HSLhsl(274, 85%, 65%)
HSVhsv(274, 63%, 95%)
CMYKcmyk(27.7%, 62.8%, 0%, 5.1%)
CIE-LABlab(54.90, 60.64, -62.93)
CIE-LCHlch(54.90, 87.39, 313.94°)
OKLaboklab(63.75% 0.1336 -0.178)
OKLCHoklch(63.75% 0.223 306.9)
XYZxyz(37.3590, 22.8375, 86.4272)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AF2 #9DF25A
analogous
#635AF2 #AF5AF2 #F25AE9
triadic
#AF5AF2 #F2AF5A #5AF2AF
tetradic
#AF5AF2 #F2635A #9DF25A #5AE9F2
square
#AF5AF2 #F2635A #9DF25A #5AE9F2
split-complementary
#AF5AF2 #E9F25A #5AF263
monochromatic
#730FC2 #9321EE #AF5AF2 #CB93F6 #E6CBFB

Accessibility & contrast

On white

3.77
#AF5AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#AF5AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AF2
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AF2#FFFFFF#000000##000000
##AF5AF21.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F7
Deuteranopia (green-blind)
#3B84EF
Tritanopia (blue-blind)
#A4799E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5af2;
/* rgb */ color: rgb(175, 90, 242);
/* oklch */ color: oklch(63.8% 0.223 306.9);
Tailwind
colors: {
  custom: {
    50: '#cb8df7',
    500: '#af5af2',
    950: '#000000',
  },
}
SCSS
$custom: #af5af2;
$custom-light: #cb8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5af2",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 242
  },
  "hsl": {
    "h": 273.553,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63753,
    "c": 0.22254,
    "h": 306.9
  },
  "luminance": 0.22837
}

Semantic roles & 50–950 ramp

primary
#AF5AF2
secondary
#D1EEBA
accent
#E20466
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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