#7A2EAB#7A2EAB

#7A2EAB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.191 H 308.5°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7A2EAB
RGBrgb(122, 46, 171)
HSLhsl(276, 58%, 43%)
HSVhsv(276, 73%, 67%)
CMYKcmyk(28.7%, 73.1%, 0%, 32.9%)
CIE-LABlab(36.05, 53.75, -52.79)
CIE-LCHlch(36.05, 75.34, 315.52°)
OKLaboklab(47.26% 0.119 -0.1497)
OKLCHoklch(47.26% 0.191 308.5)
XYZxyz(16.3522, 9.0321, 39.4021)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EAB #5FAB2E
analogous
#3B2EAB #7A2EAB #AB2E9E
triadic
#7A2EAB #AB7A2E #2EAB7A
tetradic
#7A2EAB #AB3B2E #5FAB2E #2E9EAB
square
#7A2EAB #AB3B2E #5FAB2E #2E9EAB
split-complementary
#7A2EAB #9EAB2E #2EAB3B
monochromatic
#35144B #58217B #7A2EAB #9A48CE #B479DB

Accessibility & contrast

On white

7.48
#7A2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7A2EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EAB
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EAB#FFFFFF#000000##FFFFFF
##7A2EAB1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0756A8
Tritanopia (blue-blind)
#724B6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2eab;
/* rgb */ color: rgb(122, 46, 171);
/* oklch */ color: oklch(47.3% 0.191 308.5);
Tailwind
colors: {
  custom: {
    50: '#a56ec5',
    500: '#7a2eab',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eab;
$custom-light: #a56ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eab",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 276.48,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47262,
    "c": 0.19122,
    "h": 308.5
  },
  "luminance": 0.09032
}

Semantic roles & 50–950 ramp

primary
#7A2EAB
secondary
#92C372
accent
#E14783
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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