#7A2DB0#7A2DB0

#7A2DB0 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.5% C 0.197 H 307.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7A2DB0
RGBrgb(122, 45, 176)
HSLhsl(275, 59%, 43%)
HSVhsv(275, 74%, 69%)
CMYKcmyk(30.7%, 74.4%, 0%, 31%)
CIE-LABlab(36.27, 55.30, -55.41)
CIE-LCHlch(36.27, 78.28, 314.94°)
OKLaboklab(47.54% 0.119 -0.1574)
OKLCHoklch(47.54% 0.197 307.1)
XYZxyz(16.7992, 9.1491, 41.9468)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DB0 #63B02D
analogous
#382DB0 #7A2DB0 #B02DA4
triadic
#7A2DB0 #B07A2D #2DB07A
tetradic
#7A2DB0 #B0382D #63B02D #2DA4B0
square
#7A2DB0 #B0382D #63B02D #2DA4B0
split-complementary
#7A2DB0 #A4B02D #2DB038
monochromatic
#36144F #58217F #7A2DB0 #994AD1 #B47ADD

Accessibility & contrast

On white

7.42
#7A2DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7A2DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DB0
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DB0#FFFFFF#000000##FFFFFF
##7A2DB01.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#714D6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2db0;
/* rgb */ color: rgb(122, 45, 176);
/* oklch */ color: oklch(47.5% 0.197 307.1);
Tailwind
colors: {
  custom: {
    50: '#a56ec8',
    500: '#7a2db0',
    950: '#000000',
  },
}
SCSS
$custom: #7a2db0;
$custom-light: #a56ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2db0",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 176
  },
  "hsl": {
    "h": 275.267,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47537,
    "c": 0.19735,
    "h": 307.1
  },
  "luminance": 0.09149
}

Semantic roles & 50–950 ramp

primary
#7A2DB0
secondary
#95C573
accent
#E24586
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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