#CD9AF2#CD9AF2

#CD9AF2 is a light, vivid violet. Relative luminance 0.425; OKLCH L 76.6% C 0.133 H 310.1°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#CD9AF2
RGBrgb(205, 154, 242)
HSLhsl(275, 77%, 78%)
HSVhsv(275, 36%, 95%)
CMYKcmyk(15.3%, 36.4%, 0%, 5.1%)
CIE-LABlab(71.22, 34.98, -36.92)
CIE-LCHlch(71.22, 50.86, 313.46°)
OKLaboklab(76.58% 0.0858 -0.1019)
OKLCHoklch(76.58% 0.133 310.1)
XYZxyz(52.7566, 42.5018, 89.4116)
Luminance0.4250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9AF2 #BFF29A
analogous
#A19AF2 #CD9AF2 #F29AEB
triadic
#CD9AF2 #F2CD9A #9AF2CD
tetradic
#CD9AF2 #F2A19A #BFF29A #9AEBF2
square
#CD9AF2 #F2A19A #BFF29A #9AEBF2
split-complementary
#CD9AF2 #EBF29A #9AF2A1
monochromatic
#972EE4 #B264EB #CD9AF2 #E8D0F9 #F2E4FC

Accessibility & contrast

On white

2.21
#CD9AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#CD9AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9AF2
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9AF2#FFFFFF#000000##000000
##CD9AF21.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#89ACF5
Deuteranopia (green-blind)
#95AFEF
Tritanopia (blue-blind)
#C9A7BB
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd9af2;
/* rgb */ color: rgb(205, 154, 242);
/* oklch */ color: oklch(76.6% 0.133 310.1);
Tailwind
colors: {
  custom: {
    50: '#ddb8f6',
    500: '#cd9af2',
    950: '#000000',
  },
}
SCSS
$custom: #cd9af2;
$custom-light: #ddb8f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9af2",
  "rgb": {
    "r": 205,
    "g": 154,
    "b": 242
  },
  "hsl": {
    "h": 274.773,
    "s": 77.193,
    "l": 77.647
  },
  "oklch": {
    "l": 0.76584,
    "c": 0.13319,
    "h": 310.1
  },
  "luminance": 0.42501
}

Semantic roles & 50–950 ramp

primary
#CD9AF2
secondary
#E3F3D8
accent
#D90C62
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CD9AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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