#7F4ABA#7F4ABA

#7F4ABA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.5% C 0.171 H 302.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7F4ABA
RGBrgb(127, 74, 186)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 60%, 73%)
CMYKcmyk(31.7%, 60.2%, 0%, 27.1%)
CIE-LABlab(42.69, 44.71, -50.90)
CIE-LCHlch(42.69, 67.75, 311.29°)
OKLaboklab(52.51% 0.0926 -0.1441)
OKLCHoklch(52.51% 0.171 302.7)
XYZxyz(20.0621, 12.9547, 47.8884)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4ABA #85BA4A
analogous
#4A4DBA #7F4ABA #B74ABA
triadic
#7F4ABA #BA7F4A #4ABA7F
tetradic
#7F4ABA #BA4A4D #85BA4A #4ABAB7
square
#7F4ABA #BA4A4D #85BA4A #4ABAB7
split-complementary
#7F4ABA #BAB74A #4DBA4A
monochromatic
#432664 #613790 #7F4ABA #9E76CB #BEA3DC

Accessibility & contrast

On white

5.85
#7F4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7F4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4ABA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4ABA#FFFFFF#000000##FFFFFF
##7F4ABA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C64BE
Deuteranopia (green-blind)
#2C64B7
Tritanopia (blue-blind)
#74617B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f4aba;
/* rgb */ color: rgb(127, 74, 186);
/* oklch */ color: oklch(52.5% 0.171 302.7);
Tailwind
colors: {
  custom: {
    50: '#a87fcf',
    500: '#7f4aba',
    950: '#000000',
  },
}
SCSS
$custom: #7f4aba;
$custom-light: #a87fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4aba",
  "rgb": {
    "r": 127,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 268.393,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52511,
    "c": 0.1713,
    "h": 302.7
  },
  "luminance": 0.12955
}

Semantic roles & 50–950 ramp

primary
#7F4ABA
secondary
#B1C997
accent
#D55397
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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