#CD7BFE#CD7BFE

#CD7BFE is a light, vivid violet. Relative luminance 0.343; OKLCH L 72.3% C 0.197 H 311.3°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#CD7BFE
RGBrgb(205, 123, 254)
HSLhsl(278, 98%, 74%)
HSVhsv(278, 52%, 100%)
CMYKcmyk(19.3%, 51.6%, 0%, 0.4%)
CIE-LABlab(65.20, 54.01, -52.92)
CIE-LCHlch(65.20, 75.62, 315.59°)
OKLaboklab(72.26% 0.1301 -0.148)
OKLCHoklch(72.26% 0.197 311.3)
XYZxyz(50.1460, 34.3018, 97.7260)
Luminance0.3430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7BFE #ACFE7B
analogous
#8C7BFE #CD7BFE #FE7BEE
triadic
#CD7BFE #FECD7B #7BFECD
tetradic
#CD7BFE #FE8C7B #ACFE7B #7BEEFE
square
#CD7BFE #FE8C7B #ACFE7B #7BEEFE
split-complementary
#CD7BFE #EEFE7B #7BFE8C
monochromatic
#9F02FD #B63EFE #CD7BFE #E4B8FE #F3E1FF

Accessibility & contrast

On white

2.67
#CD7BFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#CD7BFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7BFE
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7BFE#FFFFFF#000000##000000
##CD7BFE1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#589AFF
Deuteranopia (green-blind)
#72A0FB
Tritanopia (blue-blind)
#C791B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7bfe;
/* rgb */ color: rgb(205, 123, 254);
/* oklch */ color: oklch(72.3% 0.197 311.3);
Tailwind
colors: {
  custom: {
    50: '#dfa4ff',
    500: '#cd7bfe',
    950: '#000000',
  },
}
SCSS
$custom: #cd7bfe;
$custom-light: #dfa4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7bfe",
  "rgb": {
    "r": 205,
    "g": 123,
    "b": 254
  },
  "hsl": {
    "h": 277.557,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7226,
    "c": 0.19704,
    "h": 311.3
  },
  "luminance": 0.34301
}

Semantic roles & 50–950 ramp

primary
#CD7BFE
secondary
#E1F7D4
accent
#E60056
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CD7BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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