#7B2FA5#7B2FA5

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

Color values

HEX#7B2FA5
RGBrgb(123, 47, 165)
HSLhsl(279, 56%, 42%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(25.5%, 71.5%, 0%, 35.3%)
CIE-LABlab(35.91, 52.19, -49.41)
CIE-LCHlch(35.91, 71.87, 316.57°)
OKLaboklab(47.06% 0.1202 -0.1398)
OKLCHoklch(47.06% 0.184 310.7)
XYZxyz(15.9751, 8.9610, 36.4781)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FA5 #59A52F
analogous
#402FA5 #7B2FA5 #A52F94
triadic
#7B2FA5 #A57B2F #2FA57B
tetradic
#7B2FA5 #A5402F #59A52F #2F94A5
square
#7B2FA5 #A5402F #59A52F #2F94A5
split-complementary
#7B2FA5 #94A52F #2FA540
monochromatic
#341446 #572175 #7B2FA5 #9C47CB #B576D8

Accessibility & contrast

On white

7.52
#7B2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7B2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FA5
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FA5#FFFFFF#000000##FFFFFF
##7B2FA51.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1C56A2
Tritanopia (blue-blind)
#754967
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2fa5;
/* rgb */ color: rgb(123, 47, 165);
/* oklch */ color: oklch(47.1% 0.184 310.7);
Tailwind
colors: {
  custom: {
    50: '#a56ec0',
    500: '#7b2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fa5;
$custom-light: #a56ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fa5",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 278.644,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47058,
    "c": 0.18431,
    "h": 310.7
  },
  "luminance": 0.08961
}

Semantic roles & 50–950 ramp

primary
#7B2FA5
secondary
#8CC070
accent
#DF497E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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