#7A2DB1#7A2DB1

#7A2DB1 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.198 H 306.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7A2DB1
RGBrgb(122, 45, 177)
HSLhsl(275, 59%, 44%)
HSVhsv(275, 75%, 69%)
CMYKcmyk(31.1%, 74.6%, 0%, 30.6%)
CIE-LABlab(36.35, 55.52, -55.88)
CIE-LCHlch(36.35, 78.77, 314.82°)
OKLaboklab(47.62% 0.1189 -0.1588)
OKLCHoklch(47.62% 0.198 306.8)
XYZxyz(16.8985, 9.1889, 42.4698)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DB1 #64B12D
analogous
#382DB1 #7A2DB1 #B12DA6
triadic
#7A2DB1 #B17A2D #2DB17A
tetradic
#7A2DB1 #B1382D #64B12D #2DA6B1
square
#7A2DB1 #B1382D #64B12D #2DA6B1
split-complementary
#7A2DB1 #A6B12D #2DB138
monochromatic
#37144F #582180 #7A2DB1 #994AD1 #B47BDD

Accessibility & contrast

On white

7.40
#7A2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7A2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DB1
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DB1#FFFFFF#000000##FFFFFF
##7A2DB11.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#714D6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2db1;
/* rgb */ color: rgb(122, 45, 177);
/* oklch */ color: oklch(47.6% 0.198 306.8);
Tailwind
colors: {
  custom: {
    50: '#a56ec9',
    500: '#7a2db1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2db1;
$custom-light: #a56ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2db1",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 275,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47615,
    "c": 0.19834,
    "h": 306.8
  },
  "luminance": 0.09189
}

Semantic roles & 50–950 ramp

primary
#7A2DB1
secondary
#96C674
accent
#E34587
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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