#7A2DB5#7A2DB5

#7A2DB5 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.202 H 305.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7A2DB5
RGBrgb(122, 45, 181)
HSLhsl(274, 60%, 44%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(32.6%, 75.1%, 0%, 29%)
CIE-LABlab(36.65, 56.43, -57.76)
CIE-LCHlch(36.65, 80.75, 314.34°)
OKLaboklab(47.93% 0.1181 -0.1643)
OKLCHoklch(47.93% 0.202 305.7)
XYZxyz(17.3031, 9.3507, 44.6004)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DB5 #68B52D
analogous
#362DB5 #7A2DB5 #B52DAC
triadic
#7A2DB5 #B57A2D #2DB57A
tetradic
#7A2DB5 #B5362D #68B52D #2DACB5
square
#7A2DB5 #B5362D #68B52D #2DACB5
split-complementary
#7A2DB5 #ACB52D #2DB536
monochromatic
#381553 #592184 #7A2DB5 #984DD3 #B57EDF

Accessibility & contrast

On white

7.32
#7A2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7A2DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DB5
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DB5#FFFFFF#000000##FFFFFF
##7A2DB51.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#6F4F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2db5;
/* rgb */ color: rgb(122, 45, 181);
/* oklch */ color: oklch(47.9% 0.202 305.7);
Tailwind
colors: {
  custom: {
    50: '#a66ecc',
    500: '#7a2db5',
    950: '#000000',
  },
}
SCSS
$custom: #7a2db5;
$custom-light: #a66ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2db5",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 273.971,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47926,
    "c": 0.20232,
    "h": 305.7
  },
  "luminance": 0.09351
}

Semantic roles & 50–950 ramp

primary
#7A2DB5
secondary
#9AC776
accent
#E34489
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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