#7A2CA3#7A2CA3

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

Color values

HEX#7A2CA3
RGBrgb(122, 44, 163)
HSLhsl(279, 57%, 41%)
HSVhsv(279, 73%, 64%)
CMYKcmyk(25.2%, 73%, 0%, 36.1%)
CIE-LABlab(35.17, 52.82, -49.41)
CIE-LCHlch(35.17, 72.33, 316.92°)
OKLaboklab(46.46% 0.1222 -0.1398)
OKLCHoklch(46.46% 0.186 311.2)
XYZxyz(15.5363, 8.5837, 35.4816)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CA3 #55A32C
analogous
#3F2CA3 #7A2CA3 #A32C90
triadic
#7A2CA3 #A37A2C #2CA37A
tetradic
#7A2CA3 #A33F2C #55A32C #2C90A3
square
#7A2CA3 #A33F2C #55A32C #2C90A3
split-complementary
#7A2CA3 #90A32C #2CA33F
monochromatic
#321243 #561F73 #7A2CA3 #9C41CC #B571D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2CA3#FFFFFF#000000##FFFFFF
##7A2CA31.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)
#004FA6
Deuteranopia (green-blind)
#1954A0
Tritanopia (blue-blind)
#754765
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ca3;
/* rgb */ color: rgb(122, 44, 163);
/* oklch */ color: oklch(46.5% 0.186 311.2);
Tailwind
colors: {
  custom: {
    50: '#a56dbf',
    500: '#7a2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ca3;
$custom-light: #a56dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ca3",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 279.328,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46458,
    "c": 0.18566,
    "h": 311.2
  },
  "luminance": 0.08583
}

Semantic roles & 50–950 ramp

primary
#7A2CA3
secondary
#88C06B
accent
#E1477C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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