#7D4BB5#7D4BB5

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

Color values

HEX#7D4BB5
RGBrgb(125, 75, 181)
HSLhsl(268, 42%, 50%)
HSVhsv(268, 59%, 71%)
CMYKcmyk(30.9%, 58.6%, 0%, 29%)
CIE-LABlab(42.35, 42.43, -48.53)
CIE-LCHlch(42.35, 64.47, 311.16°)
OKLaboklab(52.11% 0.0888 -0.1372)
OKLCHoklch(52.11% 0.163 302.9)
XYZxyz(19.3121, 12.7283, 45.1465)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4BB5 #83B54B
analogous
#4B4EB5 #7D4BB5 #B24BB5
triadic
#7D4BB5 #B57D4B #4BB57D
tetradic
#7D4BB5 #B54B4E #83B54B #4BB5B2
square
#7D4BB5 #B54B4E #83B54B #4BB5B2
split-complementary
#7D4BB5 #B5B24B #4EB54B
monochromatic
#41275F #5F398A #7D4BB5 #9C76C7 #BCA2D9

Accessibility & contrast

On white

5.92
#7D4BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7D4BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4BB5
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4BB5#FFFFFF#000000##FFFFFF
##7D4BB51.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A63B8
Deuteranopia (green-blind)
#3164B3
Tritanopia (blue-blind)
#726079
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4bb5;
/* rgb */ color: rgb(125, 75, 181);
/* oklch */ color: oklch(52.1% 0.163 302.9);
Tailwind
colors: {
  custom: {
    50: '#a67fcc',
    500: '#7d4bb5',
    950: '#000000',
  },
}
SCSS
$custom: #7d4bb5;
$custom-light: #a67fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4bb5",
  "rgb": {
    "r": 125,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 268.302,
    "s": 41.732,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52106,
    "c": 0.16344,
    "h": 302.9
  },
  "luminance": 0.12728
}

Semantic roles & 50–950 ramp

primary
#7D4BB5
secondary
#AFC696
accent
#D25697
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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