#7A2BBB#7A2BBB

#7A2BBB is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.210 H 304.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7A2BBB
RGBrgb(122, 43, 187)
HSLhsl(273, 63%, 45%)
HSVhsv(273, 77%, 73%)
CMYKcmyk(34.8%, 77%, 0%, 26.7%)
CIE-LABlab(36.84, 58.60, -60.99)
CIE-LCHlch(36.84, 84.58, 313.86°)
OKLaboklab(48.21% 0.1185 -0.1738)
OKLCHoklch(48.21% 0.21 304.3)
XYZxyz(17.8575, 9.4532, 47.8880)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BBB #6CBB2B
analogous
#322BBB #7A2BBB #BB2BB4
triadic
#7A2BBB #BB7A2B #2BBB7A
tetradic
#7A2BBB #BB322B #6CBB2B #2BB4BB
square
#7A2BBB #BB322B #6CBB2B #2BB4BB
split-complementary
#7A2BBB #B4BB2B #2BBB32
monochromatic
#391457 #5A2089 #7A2BBB #984DD6 #B57FE2

Accessibility & contrast

On white

7.26
#7A2BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7A2BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BBB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BBB#FFFFFF#000000##FFFFFF
##7A2BBB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#6D5072
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2bbb;
/* rgb */ color: rgb(122, 43, 187);
/* oklch */ color: oklch(48.2% 0.210 304.3);
Tailwind
colors: {
  custom: {
    50: '#a66dd0',
    500: '#7a2bbb',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bbb;
$custom-light: #a66dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bbb",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 187
  },
  "hsl": {
    "h": 272.917,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48207,
    "c": 0.21033,
    "h": 304.3
  },
  "luminance": 0.09453
}

Semantic roles & 50–950 ramp

primary
#7A2BBB
secondary
#9DCA78
accent
#E6428C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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