#7D4CB3#7D4CB3

#7D4CB3 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.1% C 0.160 H 303.2°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7D4CB3
RGBrgb(125, 76, 179)
HSLhsl(269, 40%, 50%)
HSVhsv(269, 58%, 70%)
CMYKcmyk(30.2%, 57.5%, 0%, 29.8%)
CIE-LABlab(42.44, 41.38, -47.22)
CIE-LCHlch(42.44, 62.79, 311.23°)
OKLaboklab(52.13% 0.0875 -0.1334)
OKLCHoklch(52.13% 0.16 303.2)
XYZxyz(19.1767, 12.7836, 44.0963)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4CB3 #82B34C
analogous
#4C4EB3 #7D4CB3 #B14CB3
triadic
#7D4CB3 #B37D4C #4CB37D
tetradic
#7D4CB3 #B34C4E #82B34C #4CB3B1
square
#7D4CB3 #B34C4E #82B34C #4CB3B1
split-complementary
#7D4CB3 #B3B14C #4EB34C
monochromatic
#41285D #5F3A88 #7D4CB3 #9C77C5 #BBA2D7

Accessibility & contrast

On white

5.90
#7D4CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7D4CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4CB3
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4CB3#FFFFFF#000000##FFFFFF
##7D4CB31.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2163B6
Deuteranopia (green-blind)
#3464B1
Tritanopia (blue-blind)
#736078
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4cb3;
/* rgb */ color: rgb(125, 76, 179);
/* oklch */ color: oklch(52.1% 0.160 303.2);
Tailwind
colors: {
  custom: {
    50: '#a680ca',
    500: '#7d4cb3',
    950: '#000000',
  },
}
SCSS
$custom: #7d4cb3;
$custom-light: #a680ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4cb3",
  "rgb": {
    "r": 125,
    "g": 76,
    "b": 179
  },
  "hsl": {
    "h": 268.544,
    "s": 40.392,
    "l": 50
  },
  "oklch": {
    "l": 0.52128,
    "c": 0.15951,
    "h": 303.2
  },
  "luminance": 0.12784
}

Semantic roles & 50–950 ramp

primary
#7D4CB3
secondary
#AFC496
accent
#D05897
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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