#7F4DEA#7F4DEA

#7F4DEA is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.4% C 0.223 H 292.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7F4DEA
RGBrgb(127, 77, 234)
HSLhsl(259, 79%, 61%)
HSVhsv(259, 67%, 92%)
CMYKcmyk(45.7%, 67.1%, 0%, 8.2%)
CIE-LABlab(46.66, 55.55, -72.05)
CIE-LCHlch(46.66, 90.98, 307.63°)
OKLaboklab(56.44% 0.0849 -0.2063)
OKLCHoklch(56.44% 0.223 292.4)
XYZxyz(26.2534, 15.7594, 79.4846)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DEA #B8EA4D
analogous
#4D69EA #7F4DEA #CD4DEA
triadic
#7F4DEA #EA7F4D #4DEA7F
tetradic
#7F4DEA #EA4D69 #B8EA4D #4DEACD
square
#7F4DEA #EA4D69 #B8EA4D #4DEACD
split-complementary
#7F4DEA #EACD4D #69EA4D
monochromatic
#4314A9 #591ADF #7F4DEA #A684F0 #CEBAF7

Accessibility & contrast

On white

5.06
#7F4DEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7F4DEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DEA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DEA#FFFFFF#000000##FFFFFF
##7F4DEA1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#006BE7
Tritanopia (blue-blind)
#5F7495
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f4dea;
/* rgb */ color: rgb(127, 77, 234);
/* oklch */ color: oklch(56.4% 0.223 292.4);
Tailwind
colors: {
  custom: {
    50: '#ac82f2',
    500: '#7f4dea',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dea;
$custom-light: #ac82f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dea",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 234
  },
  "hsl": {
    "h": 259.108,
    "s": 78.894,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56441,
    "c": 0.22312,
    "h": 292.4
  },
  "luminance": 0.1576
}

Semantic roles & 50–950 ramp

primary
#7F4DEA
secondary
#D4E7AC
accent
#DB0A99
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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