#7F4CD5#7F4CD5

#7F4CD5 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.7% C 0.200 H 296.3°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F4CD5
RGBrgb(127, 76, 213)
HSLhsl(262, 62%, 57%)
HSVhsv(262, 64%, 84%)
CMYKcmyk(40.4%, 64.3%, 0%, 16.5%)
CIE-LABlab(44.92, 50.54, -62.94)
CIE-LCHlch(44.92, 80.72, 308.76°)
OKLaboklab(54.71% 0.0886 -0.1795)
OKLCHoklch(54.71% 0.2 296.3)
XYZxyz(23.3439, 14.4845, 64.5038)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CD5 #A2D54C
analogous
#4C5ED5 #7F4CD5 #C44CD5
triadic
#7F4CD5 #D57F4C #4CD57F
tetradic
#7F4CD5 #D54C5E #A2D54C #4CD5C4
square
#7F4CD5 #D54C5E #A2D54C #4CD5C4
split-complementary
#7F4CD5 #D5C44C #5ED54C
monochromatic
#462087 #602BB9 #7F4CD5 #A27EE1 #C6AFEC

Accessibility & contrast

On white

5.39
#7F4CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7F4CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CD5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CD5#FFFFFF#000000##FFFFFF
##7F4CD51.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#0068D2
Tritanopia (blue-blind)
#696C8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4cd5;
/* rgb */ color: rgb(127, 76, 213);
/* oklch */ color: oklch(54.7% 0.200 296.3);
Tailwind
colors: {
  custom: {
    50: '#aa81e3',
    500: '#7f4cd5',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cd5;
$custom-light: #aa81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cd5",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 262.336,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54706,
    "c": 0.20018,
    "h": 296.3
  },
  "luminance": 0.14485
}

Semantic roles & 50–950 ramp

primary
#7F4CD5
secondary
#C6DAA2
accent
#E543A9
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #7F4CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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