#7A2BA5#7A2BA5

#7A2BA5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.189 H 310.6°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7A2BA5
RGBrgb(122, 43, 165)
HSLhsl(279, 59%, 41%)
HSVhsv(279, 74%, 65%)
CMYKcmyk(26.1%, 73.9%, 0%, 35.3%)
CIE-LABlab(35.17, 53.68, -50.61)
CIE-LCHlch(35.17, 73.78, 316.68°)
OKLaboklab(46.5% 0.1229 -0.1433)
OKLCHoklch(46.5% 0.189 310.6)
XYZxyz(15.6801, 8.5823, 36.4206)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BA5 #56A52B
analogous
#3D2BA5 #7A2BA5 #A52B93
triadic
#7A2BA5 #A57A2B #2BA57A
tetradic
#7A2BA5 #A53D2B #56A52B #2B93A5
square
#7A2BA5 #A53D2B #56A52B #2B93A5
split-complementary
#7A2BA5 #93A52B #2BA53D
monochromatic
#321244 #561E74 #7A2BA5 #9B40CD #B571DA

Accessibility & contrast

On white

7.73
#7A2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7A2BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BA5
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BA5#FFFFFF#000000##FFFFFF
##7A2BA51.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1354A2
Tritanopia (blue-blind)
#744766
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ba5;
/* rgb */ color: rgb(122, 43, 165);
/* oklch */ color: oklch(46.5% 0.189 310.6);
Tailwind
colors: {
  custom: {
    50: '#a56cc0',
    500: '#7a2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ba5;
$custom-light: #a56cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ba5",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 278.852,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46501,
    "c": 0.18879,
    "h": 310.6
  },
  "luminance": 0.08582
}

Semantic roles & 50–950 ramp

primary
#7A2BA5
secondary
#89C16B
accent
#E2467D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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