#7A2AB8#7A2AB8

#7A2AB8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.208 H 305.2°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7A2AB8
RGBrgb(122, 42, 184)
HSLhsl(274, 63%, 44%)
HSVhsv(274, 77%, 72%)
CMYKcmyk(33.7%, 77.2%, 0%, 27.8%)
CIE-LABlab(36.47, 58.31, -59.83)
CIE-LCHlch(36.47, 83.54, 314.26°)
OKLaboklab(47.87% 0.12 -0.1704)
OKLCHoklch(47.87% 0.208 305.2)
XYZxyz(17.5038, 9.2543, 46.2022)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AB8 #68B82A
analogous
#332AB8 #7A2AB8 #B82AAF
triadic
#7A2AB8 #B87A2A #2AB87A
tetradic
#7A2AB8 #B8332A #68B82A #2AAFB8
square
#7A2AB8 #B8332A #68B82A #2AAFB8
split-complementary
#7A2AB8 #AFB82A #2AB833
monochromatic
#381354 #591F86 #7A2AB8 #984AD6 #B57BE1

Accessibility & contrast

On white

7.37
#7A2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7A2AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AB8
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AB8#FFFFFF#000000##FFFFFF
##7A2AB81.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#6E4E70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2ab8;
/* rgb */ color: rgb(122, 42, 184);
/* oklch */ color: oklch(47.9% 0.208 305.2);
Tailwind
colors: {
  custom: {
    50: '#a66dce',
    500: '#7a2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ab8;
$custom-light: #a66dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ab8",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 273.803,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47871,
    "c": 0.20841,
    "h": 305.2
  },
  "luminance": 0.09254
}

Semantic roles & 50–950 ramp

primary
#7A2AB8
secondary
#9AC975
accent
#E6428A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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