#7A2CB8#7A2CB8

#7A2CB8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.206 H 305.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7A2CB8
RGBrgb(122, 44, 184)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 72%)
CMYKcmyk(33.7%, 76.1%, 0%, 27.8%)
CIE-LABlab(36.74, 57.52, -59.38)
CIE-LCHlch(36.74, 82.67, 314.09°)
OKLaboklab(48.06% 0.1183 -0.1691)
OKLCHoklch(48.06% 0.206 305)
XYZxyz(17.5765, 9.3997, 46.2265)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CB8 #6AB82C
analogous
#342CB8 #7A2CB8 #B82CB0
triadic
#7A2CB8 #B87A2C #2CB87A
tetradic
#7A2CB8 #B8342C #6AB82C #2CB0B8
square
#7A2CB8 #B8342C #6AB82C #2CB0B8
split-complementary
#7A2CB8 #B0B82C #2CB834
monochromatic
#391455 #592087 #7A2CB8 #984DD4 #B57EE0

Accessibility & contrast

On white

7.29
#7A2CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7A2CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CB8
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CB8#FFFFFF#000000##FFFFFF
##7A2CB81.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#6E4F71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2cb8;
/* rgb */ color: rgb(122, 44, 184);
/* oklch */ color: oklch(48.1% 0.206 305.0);
Tailwind
colors: {
  custom: {
    50: '#a66ece',
    500: '#7a2cb8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cb8;
$custom-light: #a66ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cb8",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 273.429,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48063,
    "c": 0.20636,
    "h": 305
  },
  "luminance": 0.094
}

Semantic roles & 50–950 ramp

primary
#7A2CB8
secondary
#9BC977
accent
#E5438B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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