#7A2CBD#7A2CBD

#7A2CBD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.211 H 303.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7A2CBD
RGBrgb(122, 44, 189)
HSLhsl(272, 62%, 46%)
HSVhsv(272, 77%, 74%)
CMYKcmyk(35.4%, 76.7%, 0%, 25.9%)
CIE-LABlab(37.14, 58.67, -61.68)
CIE-LCHlch(37.14, 85.13, 313.56°)
OKLaboklab(48.47% 0.1171 -0.1758)
OKLCHoklch(48.47% 0.211 303.7)
XYZxyz(18.1099, 9.6131, 49.0357)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CBD #6FBD2C
analogous
#312CBD #7A2CBD #BD2CB7
triadic
#7A2CBD #BD7A2C #2CBD7A
tetradic
#7A2CBD #BD312C #6FBD2C #2CB7BD
square
#7A2CBD #BD312C #6FBD2C #2CB7BD
split-complementary
#7A2CBD #B7BD2C #2CBD31
monochromatic
#3A155A #5A208B #7A2CBD #9850D6 #B582E2

Accessibility & contrast

On white

7.19
#7A2CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7A2CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CBD
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CBD#FFFFFF#000000##FFFFFF
##7A2CBD1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#6C5173
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2cbd;
/* rgb */ color: rgb(122, 44, 189);
/* oklch */ color: oklch(48.5% 0.211 303.7);
Tailwind
colors: {
  custom: {
    50: '#a66ed2',
    500: '#7a2cbd',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cbd;
$custom-light: #a66ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cbd",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 272.276,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48465,
    "c": 0.21128,
    "h": 303.7
  },
  "luminance": 0.09613
}

Semantic roles & 50–950 ramp

primary
#7A2CBD
secondary
#9FCB7A
accent
#E5428E
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A2CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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