#7B2BA4#7B2BA4

#7B2BA4 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.188 H 311.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7B2BA4
RGBrgb(123, 43, 164)
HSLhsl(280, 58%, 41%)
HSVhsv(280, 74%, 64%)
CMYKcmyk(25%, 73.8%, 0%, 35.7%)
CIE-LABlab(35.24, 53.66, -49.89)
CIE-LCHlch(35.24, 73.27, 317.09°)
OKLaboklab(46.56% 0.1244 -0.1411)
OKLCHoklch(46.56% 0.188 311.4)
XYZxyz(15.7318, 8.6194, 35.9498)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2BA4 #54A42B
analogous
#3E2BA4 #7B2BA4 #A42B90
triadic
#7B2BA4 #A47B2B #2BA47B
tetradic
#7B2BA4 #A43E2B #54A42B #2B90A4
square
#7B2BA4 #A43E2B #54A42B #2B90A4
split-complementary
#7B2BA4 #90A42B #2BA43E
monochromatic
#321243 #571E74 #7B2BA4 #9D3FCD #B670D9

Accessibility & contrast

On white

7.71
#7B2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7B2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2BA4
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2BA4#FFFFFF#000000##FFFFFF
##7B2BA41.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1854A1
Tritanopia (blue-blind)
#764665
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2ba4;
/* rgb */ color: rgb(123, 43, 164);
/* oklch */ color: oklch(46.6% 0.188 311.4);
Tailwind
colors: {
  custom: {
    50: '#a56cc0',
    500: '#7b2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ba4;
$custom-light: #a56cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ba4",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 279.669,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46561,
    "c": 0.18813,
    "h": 311.4
  },
  "luminance": 0.08619
}

Semantic roles & 50–950 ramp

primary
#7B2BA4
secondary
#87C16A
accent
#E2467B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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