#7A2BB7#7A2BB7

#7A2BB7 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.206 H 305.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7A2BB7
RGBrgb(122, 43, 183)
HSLhsl(274, 62%, 44%)
HSVhsv(274, 77%, 72%)
CMYKcmyk(33.3%, 76.5%, 0%, 28.2%)
CIE-LABlab(36.53, 57.69, -59.14)
CIE-LCHlch(36.53, 82.62, 314.29°)
OKLaboklab(47.89% 0.1194 -0.1684)
OKLCHoklch(47.89% 0.206 305.3)
XYZxyz(17.4352, 9.2843, 45.6641)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BB7 #68B72B
analogous
#342BB7 #7A2BB7 #B72BAE
triadic
#7A2BB7 #B77A2B #2BB77A
tetradic
#7A2BB7 #B7342B #68B72B #2BAEB7
square
#7A2BB7 #B7342B #68B72B #2BAEB7
split-complementary
#7A2BB7 #AEB72B #2BB734
monochromatic
#381454 #591F85 #7A2BB7 #984BD5 #B57CE0

Accessibility & contrast

On white

7.35
#7A2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7A2BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BB7
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BB7#FFFFFF#000000##FFFFFF
##7A2BB71.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2bb7;
/* rgb */ color: rgb(122, 43, 183);
/* oklch */ color: oklch(47.9% 0.206 305.3);
Tailwind
colors: {
  custom: {
    50: '#a66dce',
    500: '#7a2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bb7;
$custom-light: #a66dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bb7",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 273.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47887,
    "c": 0.20641,
    "h": 305.3
  },
  "luminance": 0.09284
}

Semantic roles & 50–950 ramp

primary
#7A2BB7
secondary
#9AC975
accent
#E54389
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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