#7F4DE0#7F4DE0

#7F4DE0 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.7% C 0.212 H 294.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7F4DE0
RGBrgb(127, 77, 224)
HSLhsl(260, 70%, 59%)
HSVhsv(260, 66%, 88%)
CMYKcmyk(43.3%, 65.6%, 0%, 12.2%)
CIE-LABlab(45.91, 52.90, -67.61)
CIE-LCHlch(45.91, 85.85, 308.04°)
OKLaboklab(55.67% 0.0863 -0.1933)
OKLCHoklch(55.67% 0.212 294.1)
XYZxyz(24.8572, 15.2009, 72.1310)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DE0 #AEE04D
analogous
#4D65E0 #7F4DE0 #C94DE0
triadic
#7F4DE0 #E07F4D #4DE07F
tetradic
#7F4DE0 #E04D65 #AEE04D #4DE0C9
square
#7F4DE0 #E04D65 #AEE04D #4DE0C9
split-complementary
#7F4DE0 #E0C94D #65E04D
monochromatic
#451A98 #5D24CC #7F4DE0 #A481E9 #CAB5F2

Accessibility & contrast

On white

5.20
#7F4DE0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7F4DE0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DE0
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DE0#FFFFFF#000000##FFFFFF
##7F4DE01.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE5
Deuteranopia (green-blind)
#006ADD
Tritanopia (blue-blind)
#647090
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f4de0;
/* rgb */ color: rgb(127, 77, 224);
/* oklch */ color: oklch(55.7% 0.212 294.1);
Tailwind
colors: {
  custom: {
    50: '#ab82eb',
    500: '#7f4de0',
    950: '#000000',
  },
}
SCSS
$custom: #7f4de0;
$custom-light: #ab82eb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4de0",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 224
  },
  "hsl": {
    "h": 260.408,
    "s": 70.335,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55669,
    "c": 0.21165,
    "h": 294.1
  },
  "luminance": 0.15202
}

Semantic roles & 50–950 ramp

primary
#7F4DE0
secondary
#CEE1A8
accent
#ED3BB0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4DE0

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

Preview Lab → · Contrast checker → · Palette generator →

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