#7B2FA2#7B2FA2

#7B2FA2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.181 H 311.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7B2FA2
RGBrgb(123, 47, 162)
HSLhsl(280, 55%, 41%)
HSVhsv(280, 71%, 64%)
CMYKcmyk(24.1%, 71%, 0%, 36.5%)
CIE-LABlab(35.70, 51.53, -47.94)
CIE-LCHlch(35.70, 70.38, 317.07°)
OKLaboklab(46.84% 0.1205 -0.1354)
OKLCHoklch(46.84% 0.181 311.7)
XYZxyz(15.7053, 8.8530, 35.0569)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FA2 #56A22F
analogous
#412FA2 #7B2FA2 #A22F8F
triadic
#7B2FA2 #A27B2F #2FA27B
tetradic
#7B2FA2 #A2412F #56A22F #2F8FA2
square
#7B2FA2 #A2412F #56A22F #2F8FA2
split-complementary
#7B2FA2 #8FA22F #2FA241
monochromatic
#331343 #572173 #7B2FA2 #9C45C9 #B675D7

Accessibility & contrast

On white

7.58
#7B2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2FA2
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FA2#FFFFFF#000000##FFFFFF
##7B2FA21.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#21559F
Tritanopia (blue-blind)
#764865
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2fa2;
/* rgb */ color: rgb(123, 47, 162);
/* oklch */ color: oklch(46.8% 0.181 311.7);
Tailwind
colors: {
  custom: {
    50: '#a56ebe',
    500: '#7b2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fa2;
$custom-light: #a56ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fa2",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 279.652,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46843,
    "c": 0.18131,
    "h": 311.7
  },
  "luminance": 0.08853
}

Semantic roles & 50–950 ramp

primary
#7B2FA2
secondary
#89BF6E
accent
#DE497C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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