#7B2BAA#7B2BAA

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

Color values

HEX#7B2BAA
RGBrgb(123, 43, 170)
HSLhsl(278, 60%, 42%)
HSVhsv(278, 75%, 67%)
CMYKcmyk(27.6%, 74.7%, 0%, 33.3%)
CIE-LABlab(35.68, 54.97, -52.78)
CIE-LCHlch(35.68, 76.21, 316.16°)
OKLaboklab(47.01% 0.1234 -0.1496)
OKLCHoklch(47.01% 0.194 309.5)
XYZxyz(16.2865, 8.8413, 38.8710)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2BAA #5AAA2B
analogous
#3C2BAA #7B2BAA #AA2B9A
triadic
#7B2BAA #AA7B2B #2BAA7B
tetradic
#7B2BAA #AA3C2B #5AAA2B #2B9AAA
square
#7B2BAA #AA3C2B #5AAA2B #2B9AAA
split-complementary
#7B2BAA #9AAA2B #2BAA3C
monochromatic
#341248 #581F79 #7B2BAA #9B43CF #B574DC

Accessibility & contrast

On white

7.59
#7B2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7B2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2BAA
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2BAA#FFFFFF#000000##FFFFFF
##7B2BAA1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0655A7
Tritanopia (blue-blind)
#744968
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2baa;
/* rgb */ color: rgb(123, 43, 170);
/* oklch */ color: oklch(47.0% 0.194 309.5);
Tailwind
colors: {
  custom: {
    50: '#a66dc4',
    500: '#7b2baa',
    950: '#000000',
  },
}
SCSS
$custom: #7b2baa;
$custom-light: #a66dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2baa",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 277.795,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47007,
    "c": 0.19397,
    "h": 309.5
  },
  "luminance": 0.08841
}

Semantic roles & 50–950 ramp

primary
#7B2BAA
secondary
#8DC36E
accent
#E3457F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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