#7A2CB7#7A2CB7

#7A2CB7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.205 H 305.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7A2CB7
RGBrgb(122, 44, 183)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 72%)
CMYKcmyk(33.3%, 76%, 0%, 28.2%)
CIE-LABlab(36.66, 57.29, -58.92)
CIE-LCHlch(36.66, 82.18, 314.20°)
OKLaboklab(47.98% 0.1185 -0.1677)
OKLCHoklch(47.98% 0.205 305.2)
XYZxyz(17.4720, 9.3580, 45.6764)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CB7 #69B72C
analogous
#352CB7 #7A2CB7 #B72CAF
triadic
#7A2CB7 #B77A2C #2CB77A
tetradic
#7A2CB7 #B7352C #69B72C #2CAFB7
square
#7A2CB7 #B7352C #69B72C #2CAFB7
split-complementary
#7A2CB7 #AFB72C #2CB735
monochromatic
#381454 #592086 #7A2CB7 #984CD4 #B57EE0

Accessibility & contrast

On white

7.31
#7A2CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7A2CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CB7
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CB7#FFFFFF#000000##FFFFFF
##7A2CB71.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#6F4F70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2cb7;
/* rgb */ color: rgb(122, 44, 183);
/* oklch */ color: oklch(48.0% 0.205 305.2);
Tailwind
colors: {
  custom: {
    50: '#a66dce',
    500: '#7a2cb7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cb7;
$custom-light: #a66dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cb7",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 273.669,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47984,
    "c": 0.20537,
    "h": 305.2
  },
  "luminance": 0.09358
}

Semantic roles & 50–950 ramp

primary
#7A2CB7
secondary
#9AC876
accent
#E4438A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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