#7F4BB9#7F4BB9

#7F4BB9 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.169 H 302.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7F4BB9
RGBrgb(127, 75, 185)
HSLhsl(268, 44%, 51%)
HSVhsv(268, 59%, 73%)
CMYKcmyk(31.4%, 59.5%, 0%, 27.5%)
CIE-LABlab(42.83, 43.92, -50.09)
CIE-LCHlch(42.83, 66.62, 311.24°)
OKLaboklab(52.59% 0.0914 -0.1417)
OKLCHoklch(52.59% 0.169 302.8)
XYZxyz(20.0234, 13.0470, 47.3530)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BB9 #85B94B
analogous
#4B4EB9 #7F4BB9 #B64BB9
triadic
#7F4BB9 #B97F4B #4BB97F
tetradic
#7F4BB9 #B94B4E #85B94B #4BB9B6
square
#7F4BB9 #B94B4E #85B94B #4BB9B6
split-complementary
#7F4BB9 #B9B64B #4EB94B
monochromatic
#432763 #61388F #7F4BB9 #9E77CA #BEA3DB

Accessibility & contrast

On white

5.82
#7F4BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7F4BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BB9
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BB9#FFFFFF#000000##FFFFFF
##7F4BB91.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1464BD
Deuteranopia (green-blind)
#2F65B6
Tritanopia (blue-blind)
#74617B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f4bb9;
/* rgb */ color: rgb(127, 75, 185);
/* oklch */ color: oklch(52.6% 0.169 302.8);
Tailwind
colors: {
  custom: {
    50: '#a880cf',
    500: '#7f4bb9',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bb9;
$custom-light: #a880cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bb9",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 185
  },
  "hsl": {
    "h": 268.364,
    "s": 44,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52592,
    "c": 0.16865,
    "h": 302.8
  },
  "luminance": 0.13047
}

Semantic roles & 50–950 ramp

primary
#7F4BB9
secondary
#B1C898
accent
#D45497
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F4BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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