#7B2AA9#7B2AA9

#7B2AA9 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.8% C 0.194 H 309.9°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7B2AA9
RGBrgb(123, 42, 169)
HSLhsl(278, 60%, 41%)
HSVhsv(278, 75%, 66%)
CMYKcmyk(27.2%, 75.1%, 0%, 33.7%)
CIE-LABlab(35.46, 55.15, -52.53)
CIE-LCHlch(35.46, 76.16, 316.40°)
OKLaboklab(46.83% 0.1245 -0.1489)
OKLCHoklch(46.83% 0.194 309.9)
XYZxyz(16.1564, 8.7318, 38.3627)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AA9 #58A92A
analogous
#3C2AA9 #7B2AA9 #A92A98
triadic
#7B2AA9 #A97B2A #2AA97B
tetradic
#7B2AA9 #A93C2A #58A92A #2A98A9
square
#7B2AA9 #A93C2A #58A92A #2A98A9
split-complementary
#7B2AA9 #98A92A #2AA93C
monochromatic
#341247 #571E78 #7B2AA9 #9C41D0 #B572DC

Accessibility & contrast

On white

7.65
#7B2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7B2AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AA9
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AA9#FFFFFF#000000##FFFFFF
##7B2AA91.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0755A6
Tritanopia (blue-blind)
#744868
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2aa9;
/* rgb */ color: rgb(123, 42, 169);
/* oklch */ color: oklch(46.8% 0.194 309.9);
Tailwind
colors: {
  custom: {
    50: '#a66cc3',
    500: '#7b2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aa9;
$custom-light: #a66cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aa9",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 278.268,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46833,
    "c": 0.19411,
    "h": 309.9
  },
  "luminance": 0.08731
}

Semantic roles & 50–950 ramp

primary
#7B2AA9
secondary
#8BC36C
accent
#E3447E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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