#7B2FA6#7B2FA6

#7B2FA6 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.185 H 310.4°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7B2FA6
RGBrgb(123, 47, 166)
HSLhsl(278, 56%, 42%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(25.9%, 71.7%, 0%, 34.9%)
CIE-LABlab(35.98, 52.41, -49.89)
CIE-LCHlch(35.98, 72.36, 316.41°)
OKLaboklab(47.13% 0.12 -0.1412)
OKLCHoklch(47.13% 0.185 310.4)
XYZxyz(16.0665, 8.9975, 36.9593)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FA6 #5AA62F
analogous
#3F2FA6 #7B2FA6 #A62F96
triadic
#7B2FA6 #A67B2F #2FA67B
tetradic
#7B2FA6 #A63F2F #5AA62F #2F96A6
square
#7B2FA6 #A63F2F #5AA62F #2F96A6
split-complementary
#7B2FA6 #96A62F #2FA63F
monochromatic
#341447 #582176 #7B2FA6 #9B47CB #B577D8

Accessibility & contrast

On white

7.50
#7B2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7B2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FA6
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FA6#FFFFFF#000000##FFFFFF
##7B2FA61.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1A56A3
Tritanopia (blue-blind)
#754967
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2fa6;
/* rgb */ color: rgb(123, 47, 166);
/* oklch */ color: oklch(47.1% 0.185 310.4);
Tailwind
colors: {
  custom: {
    50: '#a56ec1',
    500: '#7b2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fa6;
$custom-light: #a56ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fa6",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 278.319,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47131,
    "c": 0.18531,
    "h": 310.4
  },
  "luminance": 0.08997
}

Semantic roles & 50–950 ramp

primary
#7B2FA6
secondary
#8DC170
accent
#DF497F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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