#7D2EB5#7D2EB5

#7D2EB5 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.202 H 306.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7D2EB5
RGBrgb(125, 46, 181)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 75%, 71%)
CMYKcmyk(30.9%, 74.6%, 0%, 29%)
CIE-LABlab(37.21, 56.58, -56.83)
CIE-LCHlch(37.21, 80.19, 314.87°)
OKLaboklab(48.41% 0.1213 -0.1615)
OKLCHoklch(48.41% 0.202 306.9)
XYZxyz(17.7731, 9.6504, 44.6335)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EB5 #66B52E
analogous
#3A2EB5 #7D2EB5 #B52EAA
triadic
#7D2EB5 #B57D2E #2EB57D
tetradic
#7D2EB5 #B53A2E #66B52E #2EAAB5
square
#7D2EB5 #B53A2E #66B52E #2EAAB5
split-complementary
#7D2EB5 #AAB52E #2EB53A
monochromatic
#3A1553 #5B2284 #7D2EB5 #9B4ED2 #B77FDE

Accessibility & contrast

On white

7.17
#7D2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7D2EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EB5
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EB5#FFFFFF#000000##FFFFFF
##7D2EB51.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#734F6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2eb5;
/* rgb */ color: rgb(125, 46, 181);
/* oklch */ color: oklch(48.4% 0.202 306.9);
Tailwind
colors: {
  custom: {
    50: '#a86fcc',
    500: '#7d2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #7d2eb5;
$custom-light: #a86fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2eb5",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 275.111,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48406,
    "c": 0.20196,
    "h": 306.9
  },
  "luminance": 0.0965
}

Semantic roles & 50–950 ramp

primary
#7D2EB5
secondary
#99C778
accent
#E34586
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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