#7A2CB3#7A2CB3

#7A2CB3 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.201 H 306.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7A2CB3
RGBrgb(122, 44, 179)
HSLhsl(275, 61%, 44%)
HSVhsv(275, 75%, 70%)
CMYKcmyk(31.8%, 75.4%, 0%, 29.8%)
CIE-LABlab(36.35, 56.39, -57.05)
CIE-LCHlch(36.35, 80.21, 314.66°)
OKLaboklab(47.67% 0.1194 -0.1622)
OKLCHoklch(47.67% 0.201 306.3)
XYZxyz(17.0616, 9.1938, 43.5148)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CB3 #65B32C
analogous
#372CB3 #7A2CB3 #B32CA8
triadic
#7A2CB3 #B37A2C #2CB37A
tetradic
#7A2CB3 #B3372C #65B32C #2CA8B3
square
#7A2CB3 #B3372C #65B32C #2CA8B3
split-complementary
#7A2CB3 #A8B32C #2CB337
monochromatic
#371451 #592082 #7A2CB3 #994AD2 #B47BDF

Accessibility & contrast

On white

7.40
#7A2CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7A2CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CB3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CB3#FFFFFF#000000##FFFFFF
##7A2CB31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#704D6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2cb3;
/* rgb */ color: rgb(122, 44, 179);
/* oklch */ color: oklch(47.7% 0.201 306.3);
Tailwind
colors: {
  custom: {
    50: '#a66dcb',
    500: '#7a2cb3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cb3;
$custom-light: #a66dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cb3",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 274.667,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47669,
    "c": 0.20142,
    "h": 306.3
  },
  "luminance": 0.09194
}

Semantic roles & 50–950 ramp

primary
#7A2CB3
secondary
#97C774
accent
#E44487
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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