#7B2AB6#7B2AB6

#7B2AB6 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.207 H 306.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7B2AB6
RGBrgb(123, 42, 182)
HSLhsl(275, 63%, 44%)
HSVhsv(275, 77%, 71%)
CMYKcmyk(32.4%, 76.9%, 0%, 28.6%)
CIE-LABlab(36.45, 58.03, -58.67)
CIE-LCHlch(36.45, 82.52, 314.69°)
OKLaboklab(47.84% 0.1219 -0.1669)
OKLCHoklch(47.84% 0.207 306.1)
XYZxyz(17.4380, 9.2444, 45.1126)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AB6 #65B62A
analogous
#352AB6 #7B2AB6 #B62AAB
triadic
#7B2AB6 #B67B2A #2AB67B
tetradic
#7B2AB6 #B6352A #65B62A #2AABB6
square
#7B2AB6 #B6352A #65B62A #2AABB6
split-complementary
#7B2AB6 #ABB62A #2AB635
monochromatic
#381353 #591F84 #7B2AB6 #9A48D5 #B57AE0

Accessibility & contrast

On white

7.37
#7B2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7B2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AB6
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AB6#FFFFFF#000000##FFFFFF
##7B2AB61.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#704D6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2ab6;
/* rgb */ color: rgb(123, 42, 182);
/* oklch */ color: oklch(47.8% 0.207 306.1);
Tailwind
colors: {
  custom: {
    50: '#a76dcd',
    500: '#7b2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ab6;
$custom-light: #a76dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ab6",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 274.714,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47838,
    "c": 0.20669,
    "h": 306.1
  },
  "luminance": 0.09244
}

Semantic roles & 50–950 ramp

primary
#7B2AB6
secondary
#97C873
accent
#E64287
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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