#7D2AB7#7D2AB7

#7D2AB7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.208 H 306.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7D2AB7
RGBrgb(125, 42, 183)
HSLhsl(275, 63%, 44%)
HSVhsv(275, 77%, 72%)
CMYKcmyk(31.7%, 77%, 0%, 28.2%)
CIE-LABlab(36.81, 58.61, -58.66)
CIE-LCHlch(36.81, 82.92, 314.97°)
OKLaboklab(48.17% 0.1244 -0.1668)
OKLCHoklch(48.17% 0.208 306.7)
XYZxyz(17.8308, 9.4350, 45.6724)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2AB7 #64B72A
analogous
#362AB7 #7D2AB7 #B72AAB
triadic
#7D2AB7 #B77D2A #2AB77D
tetradic
#7D2AB7 #B7362A #64B72A #2AABB7
square
#7D2AB7 #B7362A #64B72A #2AABB7
split-complementary
#7D2AB7 #ABB72A #2AB736
monochromatic
#391353 #5B1F85 #7D2AB7 #9C49D5 #B77BE1

Accessibility & contrast

On white

7.27
#7D2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7D2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2AB7
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2AB7#FFFFFF#000000##FFFFFF
##7D2AB71.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#734E70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d2ab7;
/* rgb */ color: rgb(125, 42, 183);
/* oklch */ color: oklch(48.2% 0.208 306.7);
Tailwind
colors: {
  custom: {
    50: '#a86dce',
    500: '#7d2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ab7;
$custom-light: #a86dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ab7",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 275.319,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48173,
    "c": 0.20814,
    "h": 306.7
  },
  "luminance": 0.09435
}

Semantic roles & 50–950 ramp

primary
#7D2AB7
secondary
#97C974
accent
#E64285
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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