#7D2DBA#7D2DBA

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

Color values

HEX#7D2DBA
RGBrgb(125, 45, 186)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 73%)
CMYKcmyk(32.8%, 75.8%, 0%, 27.1%)
CIE-LABlab(37.45, 58.11, -59.39)
CIE-LCHlch(37.45, 83.09, 314.37°)
OKLaboklab(48.7% 0.1212 -0.169)
OKLCHoklch(48.7% 0.208 305.6)
XYZxyz(18.2568, 9.7821, 47.3712)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DBA #6ABA2D
analogous
#372DBA #7D2DBA #BA2DB0
triadic
#7D2DBA #BA7D2D #2DBA7D
tetradic
#7D2DBA #BA372D #6ABA2D #2DB0BA
square
#7D2DBA #BA372D #6ABA2D #2DB0BA
split-complementary
#7D2DBA #B0BA2D #2DBA37
monochromatic
#3B1557 #5C2189 #7D2DBA #9B50D5 #B781E0

Accessibility & contrast

On white

7.10
#7D2DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2DBA
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DBA#FFFFFF#000000##FFFFFF
##7D2DBA1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#725072
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2dba;
/* rgb */ color: rgb(125, 45, 186);
/* oklch */ color: oklch(48.7% 0.208 305.6);
Tailwind
colors: {
  custom: {
    50: '#a86ed0',
    500: '#7d2dba',
    950: '#000000',
  },
}
SCSS
$custom: #7d2dba;
$custom-light: #a86ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2dba",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 274.043,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48695,
    "c": 0.20795,
    "h": 305.6
  },
  "luminance": 0.09782
}

Semantic roles & 50–950 ramp

primary
#7D2DBA
secondary
#9CC979
accent
#E44489
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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