#7F4DE8#7F4DE8

#7F4DE8 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.3% C 0.221 H 292.7°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7F4DE8
RGBrgb(127, 77, 232)
HSLhsl(259, 77%, 61%)
HSVhsv(259, 67%, 91%)
CMYKcmyk(45.3%, 66.8%, 0%, 9%)
CIE-LABlab(46.51, 55.02, -71.17)
CIE-LCHlch(46.51, 89.96, 307.71°)
OKLaboklab(56.29% 0.0852 -0.2037)
OKLCHoklch(56.29% 0.221 292.7)
XYZxyz(25.9677, 15.6452, 77.9799)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DE8 #B6E84D
analogous
#4D68E8 #7F4DE8 #CC4DE8
triadic
#7F4DE8 #E87F4D #4DE87F
tetradic
#7F4DE8 #E84D68 #B6E84D #4DE8CC
square
#7F4DE8 #E84D68 #B6E84D #4DE8CC
split-complementary
#7F4DE8 #E8CC4D #68E84D
monochromatic
#4415A5 #5A1CDB #7F4DE8 #A683EF #CDB9F6

Accessibility & contrast

On white

5.09
#7F4DE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7F4DE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DE8
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DE8#FFFFFF#000000##FFFFFF
##7F4DE81.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#006BE5
Tritanopia (blue-blind)
#607394
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f4de8;
/* rgb */ color: rgb(127, 77, 232);
/* oklch */ color: oklch(56.3% 0.221 292.7);
Tailwind
colors: {
  custom: {
    50: '#ac82f0',
    500: '#7f4de8',
    950: '#000000',
  },
}
SCSS
$custom: #7f4de8;
$custom-light: #ac82f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4de8",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 232
  },
  "hsl": {
    "h": 259.355,
    "s": 77.114,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56285,
    "c": 0.22083,
    "h": 292.7
  },
  "luminance": 0.15646
}

Semantic roles & 50–950 ramp

primary
#7F4DE8
secondary
#D3E6AB
accent
#D90C97
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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