#7A2BAA#7A2BAA

#7A2BAA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.194 H 309.1°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7A2BAA
RGBrgb(122, 43, 170)
HSLhsl(277, 60%, 42%)
HSVhsv(277, 75%, 67%)
CMYKcmyk(28.2%, 74.7%, 0%, 33.3%)
CIE-LABlab(35.53, 54.78, -53.02)
CIE-LCHlch(35.53, 76.23, 315.93°)
OKLaboklab(46.88% 0.1221 -0.1504)
OKLCHoklch(46.88% 0.194 309.1)
XYZxyz(16.1441, 8.7679, 38.8643)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BAA #5BAA2B
analogous
#3B2BAA #7A2BAA #AA2B9B
triadic
#7A2BAA #AA7A2B #2BAA7A
tetradic
#7A2BAA #AA3B2B #5BAA2B #2B9BAA
square
#7A2BAA #AA3B2B #5BAA2B #2B9BAA
split-complementary
#7A2BAA #9BAA2B #2BAA3B
monochromatic
#341248 #571F79 #7A2BAA #9A43CF #B474DC

Accessibility & contrast

On white

7.63
#7A2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7A2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BAA
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BAA#FFFFFF#000000##FFFFFF
##7A2BAA1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0255A7
Tritanopia (blue-blind)
#734968
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2baa;
/* rgb */ color: rgb(122, 43, 170);
/* oklch */ color: oklch(46.9% 0.194 309.1);
Tailwind
colors: {
  custom: {
    50: '#a56cc4',
    500: '#7a2baa',
    950: '#000000',
  },
}
SCSS
$custom: #7a2baa;
$custom-light: #a56cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2baa",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 277.323,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46876,
    "c": 0.19368,
    "h": 309.1
  },
  "luminance": 0.08768
}

Semantic roles & 50–950 ramp

primary
#7A2BAA
secondary
#8EC36E
accent
#E34581
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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