#7D4FB2#7D4FB2

#7D4FB2 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.5% C 0.154 H 302.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7D4FB2
RGBrgb(125, 79, 178)
HSLhsl(268, 39%, 50%)
HSVhsv(268, 56%, 70%)
CMYKcmyk(29.8%, 55.6%, 0%, 30.2%)
CIE-LABlab(43.01, 39.46, -45.71)
CIE-LCHlch(43.01, 60.38, 310.80°)
OKLaboklab(52.53% 0.0835 -0.129)
OKLCHoklch(52.53% 0.154 302.9)
XYZxyz(19.2875, 13.1663, 43.6361)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4FB2 #84B24F
analogous
#4F52B2 #7D4FB2 #AE4FB2
triadic
#7D4FB2 #B27D4F #4FB27D
tetradic
#7D4FB2 #B24F52 #84B24F #4FB2AE
square
#7D4FB2 #B24F52 #84B24F #4FB2AE
split-complementary
#7D4FB2 #B2AE4F #52B24F
monochromatic
#41295E #5F3C88 #7D4FB2 #9C7AC5 #BCA4D7

Accessibility & contrast

On white

5.78
#7D4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7D4FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4FB2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4FB2#FFFFFF#000000##FFFFFF
##7D4FB21.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2965B5
Deuteranopia (green-blind)
#3965B0
Tritanopia (blue-blind)
#736279
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7d4fb2;
/* rgb */ color: rgb(125, 79, 178);
/* oklch */ color: oklch(52.5% 0.154 302.9);
Tailwind
colors: {
  custom: {
    50: '#a682c9',
    500: '#7d4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7d4fb2;
$custom-light: #a682c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4fb2",
  "rgb": {
    "r": 125,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 267.879,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52533,
    "c": 0.15365,
    "h": 302.9
  },
  "luminance": 0.13166
}

Semantic roles & 50–950 ramp

primary
#7D4FB2
secondary
#B0C498
accent
#CF5998
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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