#7A2CBA#7A2CBA

#7A2CBA is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.208 H 304.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7A2CBA
RGBrgb(122, 44, 186)
HSLhsl(273, 62%, 45%)
HSVhsv(273, 76%, 73%)
CMYKcmyk(34.4%, 76.3%, 0%, 27.1%)
CIE-LABlab(36.90, 57.98, -60.30)
CIE-LCHlch(36.90, 83.66, 313.87°)
OKLaboklab(48.22% 0.1178 -0.1718)
OKLCHoklch(48.22% 0.208 304.4)
XYZxyz(17.7876, 9.4842, 47.3384)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CBA #6CBA2C
analogous
#332CBA #7A2CBA #BA2CB3
triadic
#7A2CBA #BA7A2C #2CBA7A
tetradic
#7A2CBA #BA332C #6CBA2C #2CB3BA
square
#7A2CBA #BA332C #6CBA2C #2CB3BA
split-complementary
#7A2CBA #B3BA2C #2CBA33
monochromatic
#391557 #5A2089 #7A2CBA #984ED5 #B580E1

Accessibility & contrast

On white

7.25
#7A2CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7A2CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CBA
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CBA#FFFFFF#000000##FFFFFF
##7A2CBA1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2cba;
/* rgb */ color: rgb(122, 44, 186);
/* oklch */ color: oklch(48.2% 0.208 304.4);
Tailwind
colors: {
  custom: {
    50: '#a66ed0',
    500: '#7a2cba',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cba;
$custom-light: #a66ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cba",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 272.958,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48223,
    "c": 0.20832,
    "h": 304.4
  },
  "luminance": 0.09484
}

Semantic roles & 50–950 ramp

primary
#7A2CBA
secondary
#9DCA78
accent
#E5438C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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