#7F4BB4#7F4BB4

#7F4BB4 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.3% C 0.163 H 304.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7F4BB4
RGBrgb(127, 75, 180)
HSLhsl(270, 41%, 50%)
HSVhsv(270, 58%, 71%)
CMYKcmyk(29.4%, 58.3%, 0%, 29.4%)
CIE-LABlab(42.52, 42.68, -47.66)
CIE-LCHlch(42.52, 63.98, 311.84°)
OKLaboklab(52.26% 0.0914 -0.1346)
OKLCHoklch(52.26% 0.163 304.2)
XYZxyz(19.5049, 12.8395, 44.6219)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BB4 #80B44B
analogous
#4B4CB4 #7F4BB4 #B34BB4
triadic
#7F4BB4 #B47F4B #4BB47F
tetradic
#7F4BB4 #B44B4C #80B44B #4BB4B3
square
#7F4BB4 #B44B4C #80B44B #4BB4B3
split-complementary
#7F4BB4 #B4B34B #4CB44B
monochromatic
#42275E #613989 #7F4BB4 #9E76C6 #BCA1D8

Accessibility & contrast

On white

5.89
#7F4BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7F4BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BB4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BB4#FFFFFF#000000##FFFFFF
##7F4BB41.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E63B7
Deuteranopia (green-blind)
#3464B2
Tritanopia (blue-blind)
#756078
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f4bb4;
/* rgb */ color: rgb(127, 75, 180);
/* oklch */ color: oklch(52.3% 0.163 304.2);
Tailwind
colors: {
  custom: {
    50: '#a77fcb',
    500: '#7f4bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bb4;
$custom-light: #a77fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bb4",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 180
  },
  "hsl": {
    "h": 269.714,
    "s": 41.176,
    "l": 50
  },
  "oklch": {
    "l": 0.52262,
    "c": 0.16272,
    "h": 304.2
  },
  "luminance": 0.12839
}

Semantic roles & 50–950 ramp

primary
#7F4BB4
secondary
#AEC596
accent
#D15794
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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