#7B397E#7B397E

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

Color values

HEX#7B397E
RGBrgb(123, 57, 126)
HSLhsl(297, 38%, 36%)
HSVhsv(297, 55%, 49%)
CMYKcmyk(2.4%, 54.8%, 0%, 50.6%)
CIE-LABlab(35.29, 39.13, -26.56)
CIE-LCHlch(35.29, 47.30, 325.83°)
OKLaboklab(45.85% 0.1076 -0.0732)
OKLCHoklch(45.85% 0.13 325.8)
XYZxyz(13.3971, 8.6443, 20.6975)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B397E #3C7E39
analogous
#58397E #7B397E #7E395E
triadic
#7B397E #7E7B39 #397E7B
tetradic
#7B397E #7E5839 #3C7E39 #395E7E
square
#7B397E #7E5839 #3C7E39 #395E7E
split-complementary
#7B397E #5E7E39 #397E58
monochromatic
#29132A #522654 #7B397E #A44CA8 #BC72BF

Accessibility & contrast

On white

7.70
#7B397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7B397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B397E
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B397E#FFFFFF#000000##FFFFFF
##7B397E1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314E80
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#7E4156
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b397e;
/* rgb */ color: rgb(123, 57, 126);
/* oklch */ color: oklch(45.8% 0.130 325.8);
Tailwind
colors: {
  custom: {
    50: '#a373a3',
    500: '#7b397e',
    950: '#000000',
  },
}
SCSS
$custom: #7b397e;
$custom-light: #a373a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b397e",
  "rgb": {
    "r": 123,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 297.391,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45849,
    "c": 0.13012,
    "h": 325.8
  },
  "luminance": 0.08644
}

Semantic roles & 50–950 ramp

primary
#7B397E
secondary
#6DA86A
accent
#CE5A5F
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#0F080F
muted
#7F7B7F

Preview Lab

Preview with #7B397E

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

Preview Lab → · Contrast checker → · Palette generator →

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