#7F4DE1#7F4DE1

#7F4DE1 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.7% C 0.213 H 293.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7F4DE1
RGBrgb(127, 77, 225)
HSLhsl(260, 71%, 59%)
HSVhsv(260, 66%, 88%)
CMYKcmyk(43.6%, 65.8%, 0%, 11.8%)
CIE-LABlab(45.98, 53.17, -68.06)
CIE-LCHlch(45.98, 86.36, 308.00°)
OKLaboklab(55.75% 0.0862 -0.1946)
OKLCHoklch(55.75% 0.213 293.9)
XYZxyz(24.9932, 15.2553, 72.8473)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DE1 #AFE14D
analogous
#4D65E1 #7F4DE1 #C94DE1
triadic
#7F4DE1 #E17F4D #4DE17F
tetradic
#7F4DE1 #E14D65 #AFE14D #4DE1C9
square
#7F4DE1 #E14D65 #AFE14D #4DE1C9
split-complementary
#7F4DE1 #E1C94D #65E14D
monochromatic
#451A9A #5D23CE #7F4DE1 #A581EA #CAB6F3

Accessibility & contrast

On white

5.18
#7F4DE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7F4DE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DE1
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DE1#FFFFFF#000000##FFFFFF
##7F4DE11.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE6
Deuteranopia (green-blind)
#006ADE
Tritanopia (blue-blind)
#647091
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f4de1;
/* rgb */ color: rgb(127, 77, 225);
/* oklch */ color: oklch(55.7% 0.213 293.9);
Tailwind
colors: {
  custom: {
    50: '#ab82eb',
    500: '#7f4de1',
    950: '#000000',
  },
}
SCSS
$custom: #7f4de1;
$custom-light: #ab82eb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4de1",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 225
  },
  "hsl": {
    "h": 260.27,
    "s": 71.154,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55745,
    "c": 0.21279,
    "h": 293.9
  },
  "luminance": 0.15256
}

Semantic roles & 50–950 ramp

primary
#7F4DE1
secondary
#CEE2A8
accent
#EE3AB1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4DE1

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

Preview Lab → · Contrast checker → · Palette generator →

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