#7B3199#7B3199

#7B3199 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.170 H 314.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7B3199
RGBrgb(123, 49, 153)
HSLhsl(283, 51%, 40%)
HSVhsv(283, 68%, 60%)
CMYKcmyk(19.6%, 68%, 0%, 40%)
CIE-LABlab(35.42, 48.67, -42.95)
CIE-LCHlch(35.42, 64.92, 318.57°)
OKLaboklab(46.45% 0.1191 -0.1208)
OKLCHoklch(46.45% 0.17 314.6)
XYZxyz(15.0155, 8.7080, 31.0207)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3199 #4F9931
analogous
#473199 #7B3199 #993183
triadic
#7B3199 #997B31 #31997B
tetradic
#7B3199 #994731 #4F9931 #318399
square
#7B3199 #994731 #4F9931 #318399
split-complementary
#7B3199 #839931 #319947
monochromatic
#30133C #56226B #7B3199 #9E44C3 #B672D2

Accessibility & contrast

On white

7.66
#7B3199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7B3199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B3199
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3199#FFFFFF#000000##FFFFFF
##7B31991.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#2D5597
Tritanopia (blue-blind)
#784561
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b3199;
/* rgb */ color: rgb(123, 49, 153);
/* oklch */ color: oklch(46.4% 0.170 314.6);
Tailwind
colors: {
  custom: {
    50: '#a46fb8',
    500: '#7b3199',
    950: '#000000',
  },
}
SCSS
$custom: #7b3199;
$custom-light: #a46fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3199",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 282.692,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46447,
    "c": 0.16967,
    "h": 314.6
  },
  "luminance": 0.08707
}

Semantic roles & 50–950 ramp

primary
#7B3199
secondary
#82BA6C
accent
#DB4D76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7B3199

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

Preview Lab → · Contrast checker → · Palette generator →

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