#7B2FA3#7B2FA3

#7B2FA3 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.182 H 311.3°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7B2FA3
RGBrgb(123, 47, 163)
HSLhsl(279, 55%, 41%)
HSVhsv(279, 71%, 64%)
CMYKcmyk(24.5%, 71.2%, 0%, 36.1%)
CIE-LABlab(35.77, 51.75, -48.43)
CIE-LCHlch(35.77, 70.88, 316.90°)
OKLaboklab(46.91% 0.1204 -0.1369)
OKLCHoklch(46.91% 0.182 311.3)
XYZxyz(15.7945, 8.8887, 35.5269)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FA3 #57A32F
analogous
#412FA3 #7B2FA3 #A32F91
triadic
#7B2FA3 #A37B2F #2FA37B
tetradic
#7B2FA3 #A3412F #57A32F #2F91A3
square
#7B2FA3 #A3412F #57A32F #2F91A3
split-complementary
#7B2FA3 #91A32F #2FA341
monochromatic
#331444 #572173 #7B2FA3 #9C46CA #B575D7

Accessibility & contrast

On white

7.56
#7B2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7B2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FA3
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FA3#FFFFFF#000000##FFFFFF
##7B2FA31.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#1F56A0
Tritanopia (blue-blind)
#764866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2fa3;
/* rgb */ color: rgb(123, 47, 163);
/* oklch */ color: oklch(46.9% 0.182 311.3);
Tailwind
colors: {
  custom: {
    50: '#a56ebf',
    500: '#7b2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fa3;
$custom-light: #a56ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fa3",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 279.31,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46914,
    "c": 0.18231,
    "h": 311.3
  },
  "luminance": 0.08888
}

Semantic roles & 50–950 ramp

primary
#7B2FA3
secondary
#8ABF6F
accent
#DF497D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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