#CD7EFA#CD7EFA

#CD7EFA is a light, vivid violet. Relative luminance 0.348; OKLCH L 72.5% C 0.188 H 312.0°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#CD7EFA
RGBrgb(205, 126, 250)
HSLhsl(278, 93%, 74%)
HSVhsv(278, 50%, 98%)
CMYKcmyk(18%, 49.6%, 0%, 2%)
CIE-LABlab(65.60, 51.63, -50.10)
CIE-LCHlch(65.60, 71.94, 315.86°)
OKLaboklab(72.49% 0.1258 -0.1398)
OKLCHoklch(72.49% 0.188 312)
XYZxyz(49.8900, 34.8040, 94.5137)
Luminance0.3480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EFA #ABFA7E
analogous
#8F7EFA #CD7EFA #FA7EE9
triadic
#CD7EFA #FACD7E #7EFACD
tetradic
#CD7EFA #FA8F7E #ABFA7E #7EE9FA
square
#CD7EFA #FA8F7E #ABFA7E #7EE9FA
split-complementary
#CD7EFA #E9FA7E #7EFA8F
monochromatic
#9F09F4 #B643F8 #CD7EFA #E4B9FC #F4E2FE

Accessibility & contrast

On white

2.64
#CD7EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#CD7EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EFA
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EFA#FFFFFF#000000##000000
##CD7EFA1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#609BFE
Deuteranopia (green-blind)
#77A1F7
Tritanopia (blue-blind)
#C892B1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd7efa;
/* rgb */ color: rgb(205, 126, 250);
/* oklch */ color: oklch(72.5% 0.188 312.0);
Tailwind
colors: {
  custom: {
    50: '#dfa6fc',
    500: '#cd7efa',
    950: '#000000',
  },
}
SCSS
$custom: #cd7efa;
$custom-light: #dfa6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7efa",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 278.226,
    "s": 92.537,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72487,
    "c": 0.18806,
    "h": 312
  },
  "luminance": 0.34803
}

Semantic roles & 50–950 ramp

primary
#CD7EFA
secondary
#E1F6D5
accent
#E60053
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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