#7F4DEC#7F4DEC

#7F4DEC is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.6% C 0.225 H 292.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7F4DEC
RGBrgb(127, 77, 236)
HSLhsl(259, 81%, 61%)
HSVhsv(259, 67%, 93%)
CMYKcmyk(46.2%, 67.4%, 0%, 7.5%)
CIE-LABlab(46.81, 56.08, -72.93)
CIE-LCHlch(46.81, 92.00, 307.56°)
OKLaboklab(56.6% 0.0846 -0.2089)
OKLCHoklch(56.6% 0.225 292.1)
XYZxyz(26.5424, 15.8750, 81.0063)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DEC #BAEC4D
analogous
#4D6BEC #7F4DEC #CF4DEC
triadic
#7F4DEC #EC7F4D #4DEC7F
tetradic
#7F4DEC #EC4D6B #BAEC4D #4DECCF
square
#7F4DEC #EC4D6B #BAEC4D #4DECCF
split-complementary
#7F4DEC #ECCF4D #6BEC4D
monochromatic
#4312AC #5818E4 #7F4DEC #A784F2 #CFBCF8

Accessibility & contrast

On white

5.03
#7F4DEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7F4DEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DEC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DEC#FFFFFF#000000##FFFFFF
##7F4DEC1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#5E7497
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f4dec;
/* rgb */ color: rgb(127, 77, 236);
/* oklch */ color: oklch(56.6% 0.225 292.1);
Tailwind
colors: {
  custom: {
    50: '#ac82f3',
    500: '#7f4dec',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dec;
$custom-light: #ac82f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dec",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 236
  },
  "hsl": {
    "h": 258.868,
    "s": 80.711,
    "l": 61.373
  },
  "oklch": {
    "l": 0.56599,
    "c": 0.22539,
    "h": 292.1
  },
  "luminance": 0.15876
}

Semantic roles & 50–950 ramp

primary
#7F4DEC
secondary
#D5E8AD
accent
#DD089A
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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