#7F4DBA#7F4DBA

#7F4DBA is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.0% C 0.167 H 302.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7F4DBA
RGBrgb(127, 77, 186)
HSLhsl(268, 44%, 52%)
HSVhsv(268, 59%, 73%)
CMYKcmyk(31.7%, 58.6%, 0%, 27.1%)
CIE-LABlab(43.31, 43.08, -49.91)
CIE-LCHlch(43.31, 65.93, 310.79°)
OKLaboklab(52.96% 0.0889 -0.1412)
OKLCHoklch(52.96% 0.167 302.2)
XYZxyz(20.2672, 13.3649, 47.9568)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DBA #88BA4D
analogous
#4D52BA #7F4DBA #B64DBA
triadic
#7F4DBA #BA7F4D #4DBA7F
tetradic
#7F4DBA #BA4D52 #88BA4D #4DBAB6
square
#7F4DBA #BA4D52 #88BA4D #4DBAB6
split-complementary
#7F4DBA #BAB64D #52BA4D
monochromatic
#442765 #613891 #7F4DBA #9F79CB #BEA5DC

Accessibility & contrast

On white

5.72
#7F4DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#7F4DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DBA
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DBA#FFFFFF#000000##FFFFFF
##7F4DBA1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1965BE
Deuteranopia (green-blind)
#3066B7
Tritanopia (blue-blind)
#73637C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4dba;
/* rgb */ color: rgb(127, 77, 186);
/* oklch */ color: oklch(53.0% 0.167 302.2);
Tailwind
colors: {
  custom: {
    50: '#a881cf',
    500: '#7f4dba',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dba;
$custom-light: #a881cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dba",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 267.523,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52959,
    "c": 0.16687,
    "h": 302.2
  },
  "luminance": 0.13365
}

Semantic roles & 50–950 ramp

primary
#7F4DBA
secondary
#B3C999
accent
#D45499
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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