#7A2BA3#7A2BA3

#7A2BA3 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.187 H 311.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7A2BA3
RGBrgb(122, 43, 163)
HSLhsl(280, 58%, 40%)
HSVhsv(280, 74%, 64%)
CMYKcmyk(25.2%, 73.6%, 0%, 36.1%)
CIE-LABlab(35.02, 53.24, -49.64)
CIE-LCHlch(35.02, 72.79, 317.00°)
OKLaboklab(46.35% 0.1232 -0.1404)
OKLCHoklch(46.35% 0.187 311.3)
XYZxyz(15.4995, 8.5101, 35.4693)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BA3 #54A32B
analogous
#3E2BA3 #7A2BA3 #A32B90
triadic
#7A2BA3 #A37A2B #2BA37A
tetradic
#7A2BA3 #A33E2B #54A32B #2B90A3
square
#7A2BA3 #A33E2B #54A32B #2B90A3
split-complementary
#7A2BA3 #90A32B #2BA33E
monochromatic
#321142 #561E73 #7A2BA3 #9C3FCC #B56FD9

Accessibility & contrast

On white

7.77
#7A2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7A2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BA3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BA3#FFFFFF#000000##FFFFFF
##7A2BA31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#1754A0
Tritanopia (blue-blind)
#754665
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2ba3;
/* rgb */ color: rgb(122, 43, 163);
/* oklch */ color: oklch(46.4% 0.187 311.3);
Tailwind
colors: {
  custom: {
    50: '#a56cbf',
    500: '#7a2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ba3;
$custom-light: #a56cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ba3",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 279.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46354,
    "c": 0.18684,
    "h": 311.3
  },
  "luminance": 0.0851
}

Semantic roles & 50–950 ramp

primary
#7A2BA3
secondary
#87C06A
accent
#E1467B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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