#7B3AA2#7B3AA2

#7B3AA2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.2% C 0.166 H 310.4°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7B3AA2
RGBrgb(123, 58, 162)
HSLhsl(278, 47%, 43%)
HSVhsv(278, 64%, 64%)
CMYKcmyk(24.1%, 64.2%, 0%, 36.5%)
CIE-LABlab(37.56, 46.35, -44.94)
CIE-LCHlch(37.56, 64.56, 315.89°)
OKLaboklab(48.18% 0.1079 -0.1267)
OKLCHoklch(48.18% 0.166 310.4)
XYZxyz(16.2018, 9.8460, 35.2224)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3AA2 #61A23A
analogous
#473AA2 #7B3AA2 #A23A95
triadic
#7B3AA2 #A27B3A #3AA27B
tetradic
#7B3AA2 #A2473A #61A23A #3A95A2
square
#7B3AA2 #A2473A #61A23A #3A95A2
split-complementary
#7B3AA2 #95A23A #3AA247
monochromatic
#371A48 #592A75 #7B3AA2 #9A57C3 #B584D3

Accessibility & contrast

On white

7.07
#7B3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7B3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B3AA2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3AA2#FFFFFF#000000##FFFFFF
##7B3AA21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0255A5
Deuteranopia (green-blind)
#2E59A0
Tritanopia (blue-blind)
#764F69
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b3aa2;
/* rgb */ color: rgb(123, 58, 162);
/* oklch */ color: oklch(48.2% 0.166 310.4);
Tailwind
colors: {
  custom: {
    50: '#a474be',
    500: '#7b3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #7b3aa2;
$custom-light: #a474be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3aa2",
  "rgb": {
    "r": 123,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 277.5,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48182,
    "c": 0.16639,
    "h": 310.4
  },
  "luminance": 0.09846
}

Semantic roles & 50–950 ramp

primary
#7B3AA2
secondary
#94BD7B
accent
#D75183
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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