#7A2DAB#7A2DAB

#7A2DAB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.192 H 308.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7A2DAB
RGBrgb(122, 45, 171)
HSLhsl(277, 58%, 42%)
HSVhsv(277, 74%, 67%)
CMYKcmyk(28.7%, 73.7%, 0%, 32.9%)
CIE-LABlab(35.90, 54.17, -53.03)
CIE-LCHlch(35.90, 75.81, 315.61°)
OKLaboklab(47.16% 0.12 -0.1504)
OKLCHoklch(47.16% 0.192 308.6)
XYZxyz(16.3136, 8.9549, 39.3893)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DAB #5EAB2D
analogous
#3B2DAB #7A2DAB #AB2D9D
triadic
#7A2DAB #AB7A2D #2DAB7A
tetradic
#7A2DAB #AB3B2D #5EAB2D #2D9DAB
square
#7A2DAB #AB3B2D #5EAB2D #2D9DAB
split-complementary
#7A2DAB #9DAB2D #2DAB3B
monochromatic
#35144A #57207B #7A2DAB #9A47CE #B477DB

Accessibility & contrast

On white

7.52
#7A2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7A2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DAB
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DAB#FFFFFF#000000##FFFFFF
##7A2DAB1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0455A8
Tritanopia (blue-blind)
#724A6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2dab;
/* rgb */ color: rgb(122, 45, 171);
/* oklch */ color: oklch(47.2% 0.192 308.6);
Tailwind
colors: {
  custom: {
    50: '#a56dc5',
    500: '#7a2dab',
    950: '#000000',
  },
}
SCSS
$custom: #7a2dab;
$custom-light: #a56dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2dab",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 276.667,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47157,
    "c": 0.19238,
    "h": 308.6
  },
  "luminance": 0.08955
}

Semantic roles & 50–950 ramp

primary
#7A2DAB
secondary
#91C371
accent
#E24683
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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