#7F4CED#7F4CED

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

Color values

HEX#7F4CED
RGBrgb(127, 76, 237)
HSLhsl(259, 82%, 61%)
HSVhsv(259, 68%, 93%)
CMYKcmyk(46.4%, 67.9%, 0%, 7.1%)
CIE-LABlab(46.70, 56.85, -73.67)
CIE-LCHlch(46.70, 93.06, 307.66°)
OKLaboklab(56.55% 0.0854 -0.2111)
OKLCHoklch(56.55% 0.228 292)
XYZxyz(26.6186, 15.7944, 81.7505)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CED #BAED4C
analogous
#4C6AED #7F4CED #D04CED
triadic
#7F4CED #ED7F4C #4CED7F
tetradic
#7F4CED #ED4C6A #BAED4C #4CEDD0
square
#7F4CED #ED4C6A #BAED4C #4CEDD0
split-complementary
#7F4CED #EDD04C #6AED4C
monochromatic
#4311AD #5817E5 #7F4CED #A784F3 #CFBBF8

Accessibility & contrast

On white

5.05
#7F4CED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7F4CED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CED
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CED#FFFFFF#000000##FFFFFF
##7F4CED1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f4ced;
/* rgb */ color: rgb(127, 76, 237);
/* oklch */ color: oklch(56.5% 0.228 292.0);
Tailwind
colors: {
  custom: {
    50: '#ad82f4',
    500: '#7f4ced',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ced;
$custom-light: #ad82f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ced",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 237
  },
  "hsl": {
    "h": 259.006,
    "s": 81.726,
    "l": 61.373
  },
  "oklch": {
    "l": 0.56546,
    "c": 0.22769,
    "h": 292
  },
  "luminance": 0.15795
}

Semantic roles & 50–950 ramp

primary
#7F4CED
secondary
#D5E8AC
accent
#DE079A
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4CED

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

Preview Lab → · Contrast checker → · Palette generator →

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