#7F4BB1#7F4BB1

#7F4BB1 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.159 H 305.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7F4BB1
RGBrgb(127, 75, 177)
HSLhsl(271, 40%, 49%)
HSVhsv(271, 58%, 69%)
CMYKcmyk(28.2%, 57.6%, 0%, 30.6%)
CIE-LABlab(42.34, 41.94, -46.19)
CIE-LCHlch(42.34, 62.39, 312.24°)
OKLaboklab(52.07% 0.0914 -0.1303)
OKLCHoklch(52.07% 0.159 305)
XYZxyz(19.2026, 12.7186, 43.0298)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BB1 #7DB14B
analogous
#4C4BB1 #7F4BB1 #B14BB0
triadic
#7F4BB1 #B17F4B #4BB17F
tetradic
#7F4BB1 #B14C4B #7DB14B #4BB0B1
square
#7F4BB1 #B14C4B #7DB14B #4BB0B1
split-complementary
#7F4BB1 #B0B14B #4BB14C
monochromatic
#41275B #603986 #7F4BB1 #9D75C4 #BCA0D7

Accessibility & contrast

On white

5.93
#7F4BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7F4BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BB1
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BB1#FFFFFF#000000##FFFFFF
##7F4BB11.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2262B4
Deuteranopia (green-blind)
#3764AF
Tritanopia (blue-blind)
#765F77
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f4bb1;
/* rgb */ color: rgb(127, 75, 177);
/* oklch */ color: oklch(52.1% 0.159 305.0);
Tailwind
colors: {
  custom: {
    50: '#a77fc9',
    500: '#7f4bb1',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bb1;
$custom-light: #a77fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bb1",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 270.588,
    "s": 40.476,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52068,
    "c": 0.15915,
    "h": 305
  },
  "luminance": 0.12719
}

Semantic roles & 50–950 ramp

primary
#7F4BB1
secondary
#ABC394
accent
#D05793
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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