#7B2AAB#7B2AAB

#7B2AAB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 47.0% C 0.196 H 309.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7B2AAB
RGBrgb(123, 42, 171)
HSLhsl(278, 61%, 42%)
HSVhsv(278, 75%, 67%)
CMYKcmyk(28.1%, 75.4%, 0%, 32.9%)
CIE-LABlab(35.61, 55.59, -53.49)
CIE-LCHlch(35.61, 77.14, 316.10°)
OKLaboklab(46.98% 0.1242 -0.1517)
OKLCHoklch(46.98% 0.196 309.3)
XYZxyz(16.3455, 8.8075, 39.3591)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AAB #5AAB2A
analogous
#3A2AAB #7B2AAB #AB2A9B
triadic
#7B2AAB #AB7B2A #2AAB7B
tetradic
#7B2AAB #AB3A2A #5AAB2A #2A9BAB
square
#7B2AAB #AB3A2A #5AAB2A #2A9BAB
split-complementary
#7B2AAB #9BAB2A #2AAB3A
monochromatic
#341249 #581E7A #7B2AAB #9B42D1 #B573DD

Accessibility & contrast

On white

7.60
#7B2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7B2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AAB
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AAB#FFFFFF#000000##FFFFFF
##7B2AAB1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#744969
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2aab;
/* rgb */ color: rgb(123, 42, 171);
/* oklch */ color: oklch(47.0% 0.196 309.3);
Tailwind
colors: {
  custom: {
    50: '#a66cc5',
    500: '#7b2aab',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aab;
$custom-light: #a66cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aab",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 277.674,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46984,
    "c": 0.19604,
    "h": 309.3
  },
  "luminance": 0.08807
}

Semantic roles & 50–950 ramp

primary
#7B2AAB
secondary
#8DC46D
accent
#E4447F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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