#7D2EB2#7D2EB2

#7D2EB2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.2% C 0.199 H 307.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7D2EB2
RGBrgb(125, 46, 178)
HSLhsl(276, 59%, 44%)
HSVhsv(276, 74%, 70%)
CMYKcmyk(29.8%, 74.2%, 0%, 30.2%)
CIE-LABlab(36.98, 55.90, -55.42)
CIE-LCHlch(36.98, 78.72, 315.25°)
OKLaboklab(48.18% 0.1218 -0.1573)
OKLCHoklch(48.18% 0.199 307.8)
XYZxyz(17.4686, 9.5286, 43.0298)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EB2 #63B22E
analogous
#3B2EB2 #7D2EB2 #B22EA5
triadic
#7D2EB2 #B27D2E #2EB27D
tetradic
#7D2EB2 #B23B2E #63B22E #2EA5B2
square
#7D2EB2 #B23B2E #63B22E #2EA5B2
split-complementary
#7D2EB2 #A5B22E #2EB23B
monochromatic
#391551 #5B2181 #7D2EB2 #9C4CD1 #B77DDD

Accessibility & contrast

On white

7.23
#7D2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7D2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EB2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EB2#FFFFFF#000000##FFFFFF
##7D2EB21.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#744D6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d2eb2;
/* rgb */ color: rgb(125, 46, 178);
/* oklch */ color: oklch(48.2% 0.199 307.8);
Tailwind
colors: {
  custom: {
    50: '#a86fca',
    500: '#7d2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #7d2eb2;
$custom-light: #a86fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2eb2",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 275.909,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48176,
    "c": 0.19899,
    "h": 307.8
  },
  "luminance": 0.09528
}

Semantic roles & 50–950 ramp

primary
#7D2EB2
secondary
#96C676
accent
#E24684
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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