#7B397D#7B397D

#7B397D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 45.8% C 0.129 H 326.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7B397D
RGBrgb(123, 57, 125)
HSLhsl(298, 37%, 36%)
HSVhsv(298, 54%, 49%)
CMYKcmyk(1.6%, 54.4%, 0%, 51%)
CIE-LABlab(35.24, 38.94, -26.02)
CIE-LCHlch(35.24, 46.83, 326.24°)
OKLaboklab(45.8% 0.1075 -0.0716)
OKLCHoklch(45.8% 0.129 326.3)
XYZxyz(13.3329, 8.6186, 20.3593)
Luminance0.0862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B397D #3B7D39
analogous
#59397D #7B397D #7D395D
triadic
#7B397D #7D7B39 #397D7B
tetradic
#7B397D #7D5939 #3B7D39 #395D7D
square
#7B397D #7D5939 #3B7D39 #395D7D
split-complementary
#7B397D #5D7D39 #397D59
monochromatic
#281329 #522653 #7B397D #A44CA7 #BC72BF

Accessibility & contrast

On white

7.71
#7B397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7B397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B397D
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B397D#FFFFFF#000000##FFFFFF
##7B397D1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314E7F
Deuteranopia (green-blind)
#46567B
Tritanopia (blue-blind)
#7E4155
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b397d;
/* rgb */ color: rgb(123, 57, 125);
/* oklch */ color: oklch(45.8% 0.129 326.3);
Tailwind
colors: {
  custom: {
    50: '#a373a3',
    500: '#7b397d',
    950: '#000000',
  },
}
SCSS
$custom: #7b397d;
$custom-light: #a373a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b397d",
  "rgb": {
    "r": 123,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 298.235,
    "s": 37.363,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45795,
    "c": 0.12914,
    "h": 326.3
  },
  "luminance": 0.08618
}

Semantic roles & 50–950 ramp

primary
#7B397D
secondary
#6CA86A
accent
#CD5A5E
background
#FAF7FA
surface
#F4EDF3
border
#CEC8CD
text
#0F080F
muted
#7F7B7F

Preview Lab

Preview with #7B397D

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

Preview Lab → · Contrast checker → · Palette generator →

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