#7A2CB4#7A2CB4

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

Color values

HEX#7A2CB4
RGBrgb(122, 44, 180)
HSLhsl(274, 61%, 44%)
HSVhsv(274, 76%, 71%)
CMYKcmyk(32.2%, 75.6%, 0%, 29.4%)
CIE-LABlab(36.43, 56.61, -57.52)
CIE-LCHlch(36.43, 80.71, 314.54°)
OKLaboklab(47.75% 0.1192 -0.1636)
OKLCHoklch(47.75% 0.202 306.1)
XYZxyz(17.1631, 9.2344, 44.0494)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CB4 #66B42C
analogous
#362CB4 #7A2CB4 #B42CAA
triadic
#7A2CB4 #B47A2C #2CB47A
tetradic
#7A2CB4 #B4362C #66B42C #2CAAB4
square
#7A2CB4 #B4362C #66B42C #2CAAB4
split-complementary
#7A2CB4 #AAB42C #2CB436
monochromatic
#371452 #592083 #7A2CB4 #994AD3 #B57CDF

Accessibility & contrast

On white

7.38
#7A2CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7A2CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CB4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CB4#FFFFFF#000000##FFFFFF
##7A2CB41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#704E6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2cb4;
/* rgb */ color: rgb(122, 44, 180);
/* oklch */ color: oklch(47.7% 0.202 306.1);
Tailwind
colors: {
  custom: {
    50: '#a66dcb',
    500: '#7a2cb4',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cb4;
$custom-light: #a66dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cb4",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 274.412,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47747,
    "c": 0.20241,
    "h": 306.1
  },
  "luminance": 0.09234
}

Semantic roles & 50–950 ramp

primary
#7A2CB4
secondary
#98C775
accent
#E44488
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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