#7D4BB8#7D4BB8

#7D4BB8 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.167 H 302.1°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7D4BB8
RGBrgb(125, 75, 184)
HSLhsl(268, 43%, 51%)
HSVhsv(268, 59%, 72%)
CMYKcmyk(32.1%, 59.2%, 0%, 27.8%)
CIE-LABlab(42.54, 43.19, -49.99)
CIE-LCHlch(42.54, 66.06, 310.82°)
OKLaboklab(52.31% 0.0887 -0.1415)
OKLCHoklch(52.31% 0.167 302.1)
XYZxyz(19.6232, 12.8528, 46.7851)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4BB8 #86B84B
analogous
#4B4FB8 #7D4BB8 #B34BB8
triadic
#7D4BB8 #B87D4B #4BB87D
tetradic
#7D4BB8 #B84B4F #86B84B #4BB8B3
square
#7D4BB8 #B84B4F #86B84B #4BB8B3
split-complementary
#7D4BB8 #B8B34B #4FB84B
monochromatic
#422762 #5F388E #7D4BB8 #9D77C9 #BCA3DB

Accessibility & contrast

On white

5.88
#7D4BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D4BB8
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4BB8#FFFFFF#000000##FFFFFF
##7D4BB81.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1464BC
Deuteranopia (green-blind)
#2D64B6
Tritanopia (blue-blind)
#71617A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4bb8;
/* rgb */ color: rgb(125, 75, 184);
/* oklch */ color: oklch(52.3% 0.167 302.1);
Tailwind
colors: {
  custom: {
    50: '#a67fce',
    500: '#7d4bb8',
    950: '#000000',
  },
}
SCSS
$custom: #7d4bb8;
$custom-light: #a67fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4bb8",
  "rgb": {
    "r": 125,
    "g": 75,
    "b": 184
  },
  "hsl": {
    "h": 267.523,
    "s": 43.426,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52305,
    "c": 0.16704,
    "h": 302.1
  },
  "luminance": 0.12853
}

Semantic roles & 50–950 ramp

primary
#7D4BB8
secondary
#B1C897
accent
#D35599
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D4BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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