#7A2EA1#7A2EA1

#7A2EA1 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.181 H 311.6°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7A2EA1
RGBrgb(122, 46, 161)
HSLhsl(280, 56%, 41%)
HSVhsv(280, 71%, 63%)
CMYKcmyk(24.2%, 71.4%, 0%, 36.9%)
CIE-LABlab(35.33, 51.53, -47.94)
CIE-LCHlch(35.33, 70.38, 317.07°)
OKLaboklab(46.53% 0.1204 -0.1355)
OKLCHoklch(46.53% 0.181 311.6)
XYZxyz(15.4349, 8.6652, 34.5708)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EA1 #55A12E
analogous
#402EA1 #7A2EA1 #A12E8E
triadic
#7A2EA1 #A17A2E #2EA17A
tetradic
#7A2EA1 #A1402E #55A12E #2E8EA1
square
#7A2EA1 #A1402E #55A12E #2E8EA1
split-complementary
#7A2EA1 #8EA12E #2EA140
monochromatic
#321342 #562071 #7A2EA1 #9C43C9 #B573D7

Accessibility & contrast

On white

7.68
#7A2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7A2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EA1
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EA1#FFFFFF#000000##FFFFFF
##7A2EA11.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#1F559E
Tritanopia (blue-blind)
#754764
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ea1;
/* rgb */ color: rgb(122, 46, 161);
/* oklch */ color: oklch(46.5% 0.181 311.6);
Tailwind
colors: {
  custom: {
    50: '#a46ebd',
    500: '#7a2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ea1;
$custom-light: #a46ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ea1",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 279.652,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46528,
    "c": 0.18124,
    "h": 311.6
  },
  "luminance": 0.08665
}

Semantic roles & 50–950 ramp

primary
#7A2EA1
secondary
#88BE6C
accent
#DF497C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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