#7D2AB5#7D2AB5

#7D2AB5 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.206 H 307.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7D2AB5
RGBrgb(125, 42, 181)
HSLhsl(276, 62%, 44%)
HSVhsv(276, 77%, 71%)
CMYKcmyk(30.9%, 76.8%, 0%, 29%)
CIE-LABlab(36.65, 58.16, -57.73)
CIE-LCHlch(36.65, 81.95, 315.21°)
OKLaboklab(48.02% 0.1249 -0.1641)
OKLCHoklch(48.02% 0.206 307.3)
XYZxyz(17.6241, 9.3523, 44.5838)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2AB5 #62B52A
analogous
#372AB5 #7D2AB5 #B52AA7
triadic
#7D2AB5 #B57D2A #2AB57D
tetradic
#7D2AB5 #B5372A #62B52A #2AA7B5
square
#7D2AB5 #B5372A #62B52A #2AA7B5
split-complementary
#7D2AB5 #A7B52A #2AB537
monochromatic
#381352 #5B1E83 #7D2AB5 #9C48D4 #B779E0

Accessibility & contrast

On white

7.32
#7D2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7D2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2AB5
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2AB5#FFFFFF#000000##FFFFFF
##7D2AB51.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#744D6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d2ab5;
/* rgb */ color: rgb(125, 42, 181);
/* oklch */ color: oklch(48.0% 0.206 307.3);
Tailwind
colors: {
  custom: {
    50: '#a86dcc',
    500: '#7d2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ab5;
$custom-light: #a86dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ab5",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 275.827,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48016,
    "c": 0.20622,
    "h": 307.3
  },
  "luminance": 0.09352
}

Semantic roles & 50–950 ramp

primary
#7D2AB5
secondary
#95C873
accent
#E54284
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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