#7A2BBA#7A2BBA

#7A2BBA is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.209 H 304.5°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7A2BBA
RGBrgb(122, 43, 186)
HSLhsl(273, 62%, 45%)
HSVhsv(273, 77%, 73%)
CMYKcmyk(34.4%, 76.9%, 0%, 27.1%)
CIE-LABlab(36.76, 58.37, -60.53)
CIE-LCHlch(36.76, 84.09, 313.96°)
OKLaboklab(48.13% 0.1187 -0.1724)
OKLCHoklch(48.13% 0.209 304.5)
XYZxyz(17.7508, 9.4106, 47.3261)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BBA #6BBA2B
analogous
#332BBA #7A2BBA #BA2BB2
triadic
#7A2BBA #BA7A2B #2BBA7A
tetradic
#7A2BBA #BA332B #6BBA2B #2BB2BA
square
#7A2BBA #BA332B #6BBA2B #2BB2BA
split-complementary
#7A2BBA #B2BA2B #2BBA33
monochromatic
#391457 #592088 #7A2BBA #984CD6 #B57EE1

Accessibility & contrast

On white

7.29
#7A2BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7A2BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BBA
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BBA#FFFFFF#000000##FFFFFF
##7A2BBA1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#6E5072
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2bba;
/* rgb */ color: rgb(122, 43, 186);
/* oklch */ color: oklch(48.1% 0.209 304.5);
Tailwind
colors: {
  custom: {
    50: '#a66dd0',
    500: '#7a2bba',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bba;
$custom-light: #a66dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bba",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 273.147,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48127,
    "c": 0.20934,
    "h": 304.5
  },
  "luminance": 0.0941
}

Semantic roles & 50–950 ramp

primary
#7A2BBA
secondary
#9CCA77
accent
#E6428B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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