#7A2CA6#7A2CA6

#7A2CA6 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.189 H 310.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7A2CA6
RGBrgb(122, 44, 166)
HSLhsl(278, 58%, 41%)
HSVhsv(278, 73%, 65%)
CMYKcmyk(26.5%, 73.5%, 0%, 34.9%)
CIE-LABlab(35.39, 53.48, -50.86)
CIE-LCHlch(35.39, 73.80, 316.44°)
OKLaboklab(46.68% 0.1218 -0.144)
OKLCHoklch(46.68% 0.189 310.2)
XYZxyz(15.8083, 8.6925, 36.9140)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CA6 #58A62C
analogous
#3D2CA6 #7A2CA6 #A62C95
triadic
#7A2CA6 #A67A2C #2CA67A
tetradic
#7A2CA6 #A63D2C #58A62C #2C95A6
square
#7A2CA6 #A63D2C #58A62C #2C95A6
split-complementary
#7A2CA6 #95A62C #2CA63D
monochromatic
#331245 #561F76 #7A2CA6 #9B42CD #B573DA

Accessibility & contrast

On white

7.67
#7A2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7A2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CA6
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CA6#FFFFFF#000000##FFFFFF
##7A2CA61.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#1254A3
Tritanopia (blue-blind)
#744866
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ca6;
/* rgb */ color: rgb(122, 44, 166);
/* oklch */ color: oklch(46.7% 0.189 310.2);
Tailwind
colors: {
  custom: {
    50: '#a56dc1',
    500: '#7a2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ca6;
$custom-light: #a56dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ca6",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 278.361,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46679,
    "c": 0.18861,
    "h": 310.2
  },
  "luminance": 0.08692
}

Semantic roles & 50–950 ramp

primary
#7A2CA6
secondary
#8BC16D
accent
#E1467E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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