#AF8CDC#AF8CDC

#AF8CDC is a light, moderate violet. Relative luminance 0.330; OKLCH L 70.3% C 0.120 H 303.6°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AF8CDC
RGBrgb(175, 140, 220)
HSLhsl(266, 53%, 71%)
HSVhsv(266, 36%, 86%)
CMYKcmyk(20.5%, 36.4%, 0%, 13.7%)
CIE-LABlab(64.19, 28.96, -35.96)
CIE-LCHlch(64.19, 46.17, 308.85°)
OKLaboklab(70.28% 0.0662 -0.0996)
OKLCHoklch(70.28% 0.12 303.6)
XYZxyz(39.9729, 33.0375, 71.9673)
Luminance0.3304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8CDC #B9DC8C
analogous
#8C91DC #AF8CDC #D78CDC
triadic
#AF8CDC #DCAF8C #8CDCAF
tetradic
#AF8CDC #DC8C91 #B9DC8C #8CDCD7
square
#AF8CDC #DC8C91 #B9DC8C #8CDCD7
split-complementary
#AF8CDC #DCD78C #91DC8C
monochromatic
#6F37B6 #8E5DCE #AF8CDC #D0BBEA #EFE8F8

Accessibility & contrast

On white

2.76
#AF8CDC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#AF8CDC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8CDC
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8CDC#FFFFFF#000000##000000
##AF8CDC1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A9BDF
Deuteranopia (green-blind)
#819CDA
Tritanopia (blue-blind)
#A898AA
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af8cdc;
/* rgb */ color: rgb(175, 140, 220);
/* oklch */ color: oklch(70.3% 0.120 303.6);
Tailwind
colors: {
  custom: {
    50: '#c8aee7',
    500: '#af8cdc',
    950: '#000000',
  },
}
SCSS
$custom: #af8cdc;
$custom-light: #c8aee7;
$custom-dark: #000000;
JSON
{
  "hex": "#af8cdc",
  "rgb": {
    "r": 175,
    "g": 140,
    "b": 220
  },
  "hsl": {
    "h": 266.25,
    "s": 53.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.70281,
    "c": 0.11958,
    "h": 303.6
  },
  "luminance": 0.33037
}

Semantic roles & 50–950 ramp

primary
#AF8CDC
secondary
#E3EDD7
accent
#C1257D
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF8CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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