#7D4BB1#7D4BB1

#7D4BB1 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.8% C 0.159 H 304.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7D4BB1
RGBrgb(125, 75, 177)
HSLhsl(269, 40%, 49%)
HSVhsv(269, 58%, 69%)
CMYKcmyk(29.4%, 57.6%, 0%, 30.6%)
CIE-LABlab(42.10, 41.44, -46.58)
CIE-LCHlch(42.10, 62.34, 311.66°)
OKLaboklab(51.84% 0.0887 -0.1315)
OKLCHoklch(51.84% 0.159 304)
XYZxyz(18.9076, 12.5665, 43.0159)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4BB1 #7FB14B
analogous
#4B4CB1 #7D4BB1 #B04BB1
triadic
#7D4BB1 #B17D4B #4BB17D
tetradic
#7D4BB1 #B14B4C #7FB14B #4BB1B0
square
#7D4BB1 #B14B4C #7FB14B #4BB1B0
split-complementary
#7D4BB1 #B1B04B #4CB14B
monochromatic
#40275B #5F3986 #7D4BB1 #9C75C4 #BBA0D7

Accessibility & contrast

On white

5.98
#7D4BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7D4BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4BB1
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4BB1#FFFFFF#000000##FFFFFF
##7D4BB11.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2162B4
Deuteranopia (green-blind)
#3563AF
Tritanopia (blue-blind)
#745F77
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d4bb1;
/* rgb */ color: rgb(125, 75, 177);
/* oklch */ color: oklch(51.8% 0.159 304.0);
Tailwind
colors: {
  custom: {
    50: '#a67fc9',
    500: '#7d4bb1',
    950: '#000000',
  },
}
SCSS
$custom: #7d4bb1;
$custom-light: #a67fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4bb1",
  "rgb": {
    "r": 125,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 269.412,
    "s": 40.476,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51844,
    "c": 0.15864,
    "h": 304
  },
  "luminance": 0.12566
}

Semantic roles & 50–950 ramp

primary
#7D4BB1
secondary
#ACC394
accent
#D05795
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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