#7B3397#7B3397

#7B3397 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.165 H 315.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7B3397
RGBrgb(123, 51, 151)
HSLhsl(283, 50%, 40%)
HSVhsv(283, 66%, 59%)
CMYKcmyk(18.5%, 66.2%, 0%, 40.8%)
CIE-LABlab(35.62, 47.31, -41.41)
CIE-LCHlch(35.62, 62.87, 318.81°)
OKLaboklab(46.56% 0.1168 -0.1163)
OKLCHoklch(46.56% 0.165 315.1)
XYZxyz(14.9372, 8.8135, 30.1865)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3397 #4F9733
analogous
#493397 #7B3397 #973381
triadic
#7B3397 #977B33 #33977B
tetradic
#7B3397 #974933 #4F9733 #338197
square
#7B3397 #974933 #4F9733 #338197
split-complementary
#7B3397 #819733 #339749
monochromatic
#30143C #562469 #7B3397 #9E47C1 #B674D0

Accessibility & contrast

On white

7.60
#7B3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7B3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B3397
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3397#FFFFFF#000000##FFFFFF
##7B33971.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05509A
Deuteranopia (green-blind)
#315695
Tritanopia (blue-blind)
#794660
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b3397;
/* rgb */ color: rgb(123, 51, 151);
/* oklch */ color: oklch(46.6% 0.165 315.1);
Tailwind
colors: {
  custom: {
    50: '#a470b6',
    500: '#7b3397',
    950: '#000000',
  },
}
SCSS
$custom: #7b3397;
$custom-light: #a470b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3397",
  "rgb": {
    "r": 123,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 283.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46555,
    "c": 0.16486,
    "h": 315.1
  },
  "luminance": 0.08813
}

Semantic roles & 50–950 ramp

primary
#7B3397
secondary
#82B86D
accent
#D94F75
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7B3397

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

Preview Lab → · Contrast checker → · Palette generator →

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