#7D2EB9#7D2EB9

#7D2EB9 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.206 H 305.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7D2EB9
RGBrgb(125, 46, 185)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 73%)
CMYKcmyk(32.4%, 75.1%, 0%, 27.5%)
CIE-LABlab(37.51, 57.48, -58.70)
CIE-LCHlch(37.51, 82.16, 314.40°)
OKLaboklab(48.72% 0.1205 -0.167)
OKLCHoklch(48.72% 0.206 305.8)
XYZxyz(18.1895, 9.8169, 46.8261)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EB9 #6AB92E
analogous
#382EB9 #7D2EB9 #B92EAF
triadic
#7D2EB9 #B97D2E #2EB97D
tetradic
#7D2EB9 #B9382E #6AB92E #2EAFB9
square
#7D2EB9 #B9382E #6AB92E #2EAFB9
split-complementary
#7D2EB9 #AFB92E #2EB938
monochromatic
#3B1657 #5C2288 #7D2EB9 #9B51D4 #B782E0

Accessibility & contrast

On white

7.09
#7D2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7D2EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EB9
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EB9#FFFFFF#000000##FFFFFF
##7D2EB91.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#725072
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2eb9;
/* rgb */ color: rgb(125, 46, 185);
/* oklch */ color: oklch(48.7% 0.206 305.8);
Tailwind
colors: {
  custom: {
    50: '#a86fcf',
    500: '#7d2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #7d2eb9;
$custom-light: #a86fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2eb9",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 274.101,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48716,
    "c": 0.2059,
    "h": 305.8
  },
  "luminance": 0.09817
}

Semantic roles & 50–950 ramp

primary
#7D2EB9
secondary
#9CC97A
accent
#E34489
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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