#7E4CED#7E4CED

#7E4CED is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.5% C 0.228 H 291.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7E4CED
RGBrgb(126, 76, 237)
HSLhsl(259, 82%, 61%)
HSVhsv(259, 68%, 93%)
CMYKcmyk(46.8%, 67.9%, 0%, 7.1%)
CIE-LABlab(46.60, 56.68, -73.84)
CIE-LCHlch(46.60, 93.09, 307.51°)
OKLaboklab(56.45% 0.084 -0.2116)
OKLCHoklch(56.45% 0.228 291.7)
XYZxyz(26.4704, 15.7180, 81.7435)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CED #BBED4C
analogous
#4C6BED #7E4CED #CF4CED
triadic
#7E4CED #ED7E4C #4CED7E
tetradic
#7E4CED #ED4C6B #BBED4C #4CEDCF
square
#7E4CED #ED4C6B #BBED4C #4CEDCF
split-complementary
#7E4CED #EDCF4C #6BED4C
monochromatic
#4211AD #5717E5 #7E4CED #A684F3 #CEBBF8

Accessibility & contrast

On white

5.07
#7E4CED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7E4CED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CED
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CED#FFFFFF#000000##FFFFFF
##7E4CED1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F2
Deuteranopia (green-blind)
#006BEA
Tritanopia (blue-blind)
#5B7497
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e4ced;
/* rgb */ color: rgb(126, 76, 237);
/* oklch */ color: oklch(56.5% 0.228 291.7);
Tailwind
colors: {
  custom: {
    50: '#ac82f4',
    500: '#7e4ced',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ced;
$custom-light: #ac82f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ced",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 237
  },
  "hsl": {
    "h": 258.634,
    "s": 81.726,
    "l": 61.373
  },
  "oklch": {
    "l": 0.5645,
    "c": 0.22767,
    "h": 291.7
  },
  "luminance": 0.15719
}

Semantic roles & 50–950 ramp

primary
#7E4CED
secondary
#D6E8AC
accent
#DE079B
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E4CED

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

Preview Lab → · Contrast checker → · Palette generator →

#7E4CED Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva