#CD7FF2#CD7FF2

#CD7FF2 is a light, vivid purple. Relative luminance 0.346; OKLCH L 72.2% C 0.178 H 314.0°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#CD7FF2
RGBrgb(205, 127, 242)
HSLhsl(281, 82%, 72%)
HSVhsv(281, 48%, 95%)
CMYKcmyk(15.3%, 47.5%, 0%, 5.1%)
CIE-LABlab(65.41, 49.43, -45.99)
CIE-LCHlch(65.41, 67.52, 317.06°)
OKLaboklab(72.22% 0.1235 -0.1279)
OKLCHoklch(72.22% 0.178 314)
XYZxyz(48.7906, 34.5699, 88.0896)
Luminance0.3457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7FF2 #A4F27F
analogous
#947FF2 #CD7FF2 #F27FDD
triadic
#CD7FF2 #F2CD7F #7FF2CD
tetradic
#CD7FF2 #F2947F #A4F27F #7FDDF2
square
#CD7FF2 #F2947F #A4F27F #7FDDF2
split-complementary
#CD7FF2 #DDF27F #7FF294
monochromatic
#9F17E0 #B747EC #CD7FF2 #E3B7F8 #F4E3FC

Accessibility & contrast

On white

2.65
#CD7FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#CD7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7FF2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7FF2#FFFFFF#000000##000000
##CD7FF21.002.657.917.91
#FFFFFF2.651.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#679AF6
Deuteranopia (green-blind)
#7DA1EF
Tritanopia (blue-blind)
#CA90AD
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd7ff2;
/* rgb */ color: rgb(205, 127, 242);
/* oklch */ color: oklch(72.2% 0.178 314.0);
Tailwind
colors: {
  custom: {
    50: '#dea6f7',
    500: '#cd7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ff2;
$custom-light: #dea6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ff2",
  "rgb": {
    "r": 205,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 280.696,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72225,
    "c": 0.17779,
    "h": 314
  },
  "luminance": 0.34569
}

Semantic roles & 50–950 ramp

primary
#CD7FF2
secondary
#E0F4D7
accent
#DE084D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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