#AF9ECD#AF9ECD

#AF9ECD is a light, moderate violet. Relative luminance 0.380; OKLCH L 73.0% C 0.069 H 301.2°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#AF9ECD
RGBrgb(175, 158, 205)
HSLhsl(262, 32%, 71%)
HSVhsv(262, 23%, 80%)
CMYKcmyk(14.6%, 22.9%, 0%, 19.6%)
CIE-LABlab(68.00, 15.48, -21.75)
CIE-LCHlch(68.00, 26.70, 305.43°)
OKLaboklab(73.01% 0.036 -0.0593)
OKLCHoklch(73.01% 0.069 301.2)
XYZxyz(40.9233, 37.9754, 62.9198)
Luminance0.3797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9ECD #BCCD9E
analogous
#9EA4CD #AF9ECD #C69ECD
triadic
#AF9ECD #CDAF9E #9ECDAF
tetradic
#AF9ECD #CD9EA4 #BCCD9E #9ECDC6
square
#AF9ECD #CD9EA4 #BCCD9E #9ECDC6
split-complementary
#AF9ECD #CDC69E #A4CD9E
monochromatic
#6E529F #8E76B8 #AF9ECD #D0C6E2 #EEEBF5

Accessibility & contrast

On white

2.44
#AF9ECD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#AF9ECD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9ECD
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9ECD#FFFFFF#000000##000000
##AF9ECD1.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95A5CF
Deuteranopia (green-blind)
#98A6CC
Tritanopia (blue-blind)
#AAA5AE
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #af9ecd;
/* rgb */ color: rgb(175, 158, 205);
/* oklch */ color: oklch(73.0% 0.069 301.2);
Tailwind
colors: {
  custom: {
    50: '#c7badc',
    500: '#af9ecd',
    950: '#000000',
  },
}
SCSS
$custom: #af9ecd;
$custom-light: #c7badc;
$custom-dark: #000000;
JSON
{
  "hex": "#af9ecd",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 205
  },
  "hsl": {
    "h": 261.702,
    "s": 31.973,
    "l": 71.176
  },
  "oklch": {
    "l": 0.73009,
    "c": 0.06941,
    "h": 301.2
  },
  "luminance": 0.37975
}

Semantic roles & 50–950 ramp

primary
#AF9ECD
secondary
#E5EADD
accent
#AB3B82
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #AF9ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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