#7D2AB4#7D2AB4

#7D2AB4 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.205 H 307.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7D2AB4
RGBrgb(125, 42, 180)
HSLhsl(276, 62%, 44%)
HSVhsv(276, 77%, 71%)
CMYKcmyk(30.6%, 76.7%, 0%, 29.4%)
CIE-LABlab(36.58, 57.94, -57.26)
CIE-LCHlch(36.58, 81.46, 315.34°)
OKLaboklab(47.94% 0.1251 -0.1627)
OKLCHoklch(47.94% 0.205 307.5)
XYZxyz(17.5219, 9.3114, 44.0454)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2AB4 #61B42A
analogous
#382AB4 #7D2AB4 #B42AA6
triadic
#7D2AB4 #B47D2A #2AB47D
tetradic
#7D2AB4 #B4382A #61B42A #2AA6B4
square
#7D2AB4 #B4382A #61B42A #2AA6B4
split-complementary
#7D2AB4 #A6B42A #2AB438
monochromatic
#381351 #5B1E82 #7D2AB4 #9C47D4 #B779E0

Accessibility & contrast

On white

7.34
#7D2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7D2AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2AB4
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2AB4#FFFFFF#000000##FFFFFF
##7D2AB41.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#744C6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d2ab4;
/* rgb */ color: rgb(125, 42, 180);
/* oklch */ color: oklch(47.9% 0.205 307.5);
Tailwind
colors: {
  custom: {
    50: '#a86dcb',
    500: '#7d2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ab4;
$custom-light: #a86dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ab4",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 276.087,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47938,
    "c": 0.20527,
    "h": 307.5
  },
  "luminance": 0.09311
}

Semantic roles & 50–950 ramp

primary
#7D2AB4
secondary
#94C872
accent
#E54383
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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