#AF9CE5#AF9CE5

#AF9CE5 is a light, moderate violet. Relative luminance 0.385; OKLCH L 73.6% C 0.105 H 295.7°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AF9CE5
RGBrgb(175, 156, 229)
HSLhsl(256, 58%, 75%)
HSVhsv(256, 32%, 90%)
CMYKcmyk(23.6%, 31.9%, 0%, 10.2%)
CIE-LABlab(68.42, 22.04, -34.35)
CIE-LCHlch(68.42, 40.81, 302.69°)
OKLaboklab(73.63% 0.0457 -0.0951)
OKLCHoklch(73.63% 0.105 295.7)
XYZxyz(43.7072, 38.5476, 79.2513)
Luminance0.3855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9CE5 #D2E59C
analogous
#9CADE5 #AF9CE5 #D39CE5
triadic
#AF9CE5 #E5AF9C #9CE5AF
tetradic
#AF9CE5 #E59CAD #D2E59C #9CE5D3
square
#AF9CE5 #E59CAD #D2E59C #9CE5D3
split-complementary
#AF9CE5 #E5D39C #ADE59C
monochromatic
#613BCC #886CD8 #AF9CE5 #D6CCF2 #EBE7F9

Accessibility & contrast

On white

2.41
#AF9CE5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#AF9CE5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9CE5
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9CE5#FFFFFF#000000##000000
##AF9CE51.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA7E8
Deuteranopia (green-blind)
#8DA6E3
Tritanopia (blue-blind)
#A4A8B6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #af9ce5;
/* rgb */ color: rgb(175, 156, 229);
/* oklch */ color: oklch(73.6% 0.105 295.7);
Tailwind
colors: {
  custom: {
    50: '#c8b9ed',
    500: '#af9ce5',
    950: '#000000',
  },
}
SCSS
$custom: #af9ce5;
$custom-light: #c8b9ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af9ce5",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 229
  },
  "hsl": {
    "h": 255.616,
    "s": 58.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73635,
    "c": 0.10547,
    "h": 295.7
  },
  "luminance": 0.38548
}

Semantic roles & 50–950 ramp

primary
#AF9CE5
secondary
#EAF0DB
accent
#C61F9B
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF9CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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