#7A2CB1#7A2CB1

#7A2CB1 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.5% C 0.199 H 306.9°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7A2CB1
RGBrgb(122, 44, 177)
HSLhsl(275, 60%, 43%)
HSVhsv(275, 75%, 69%)
CMYKcmyk(31.1%, 75.1%, 0%, 30.6%)
CIE-LABlab(36.20, 55.93, -56.11)
CIE-LCHlch(36.20, 79.23, 314.91°)
OKLaboklab(47.51% 0.1198 -0.1595)
OKLCHoklch(47.51% 0.199 306.9)
XYZxyz(16.8608, 9.1135, 42.4573)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CB1 #63B12C
analogous
#372CB1 #7A2CB1 #B12CA5
triadic
#7A2CB1 #B17A2C #2CB17A
tetradic
#7A2CB1 #B1372C #63B12C #2CA5B1
square
#7A2CB1 #B1372C #63B12C #2CA5B1
split-complementary
#7A2CB1 #A5B12C #2CB137
monochromatic
#36144F #582080 #7A2CB1 #9949D2 #B47ADE

Accessibility & contrast

On white

7.44
#7A2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7A2CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CB1
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CB1#FFFFFF#000000##FFFFFF
##7A2CB11.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#714C6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2cb1;
/* rgb */ color: rgb(122, 44, 177);
/* oklch */ color: oklch(47.5% 0.199 306.9);
Tailwind
colors: {
  custom: {
    50: '#a66dc9',
    500: '#7a2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cb1;
$custom-light: #a66dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cb1",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 275.188,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47513,
    "c": 0.19945,
    "h": 306.9
  },
  "luminance": 0.09113
}

Semantic roles & 50–950 ramp

primary
#7A2CB1
secondary
#95C673
accent
#E34486
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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