#7A2DB9#7A2DB9

#7A2DB9 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.206 H 304.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7A2DB9
RGBrgb(122, 45, 185)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 73%)
CMYKcmyk(34.1%, 75.7%, 0%, 27.5%)
CIE-LABlab(36.96, 57.35, -59.62)
CIE-LCHlch(36.96, 82.72, 313.89°)
OKLaboklab(48.24% 0.1172 -0.1698)
OKLCHoklch(48.24% 0.206 304.6)
XYZxyz(17.7194, 9.5172, 46.7930)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DB9 #6CB92D
analogous
#342DB9 #7A2DB9 #B92DB2
triadic
#7A2DB9 #B97A2D #2DB97A
tetradic
#7A2DB9 #B9342D #6CB92D #2DB2B9
square
#7A2DB9 #B9342D #6CB92D #2DB2B9
split-complementary
#7A2DB9 #B2B92D #2DB934
monochromatic
#391557 #5A2188 #7A2DB9 #984FD4 #B580E0

Accessibility & contrast

On white

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

On black

2.90
#7A2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7A2DB9#FFFFFF#000000##FFFFFF
##7A2DB91.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#6E5071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2db9;
/* rgb */ color: rgb(122, 45, 185);
/* oklch */ color: oklch(48.2% 0.206 304.6);
Tailwind
colors: {
  custom: {
    50: '#a66ecf',
    500: '#7a2db9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2db9;
$custom-light: #a66ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2db9",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 273,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48242,
    "c": 0.20629,
    "h": 304.6
  },
  "luminance": 0.09517
}

Semantic roles & 50–950 ramp

primary
#7A2DB9
secondary
#9DC979
accent
#E4448C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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