#7B397C#7B397C

#7B397C is a mid, vivid purple. Relative luminance 0.086; OKLCH L 45.7% C 0.128 H 326.9°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7B397C
RGBrgb(123, 57, 124)
HSLhsl(299, 37%, 35%)
HSVhsv(299, 54%, 49%)
CMYKcmyk(0.8%, 54%, 0%, 51.4%)
CIE-LABlab(35.19, 38.74, -25.48)
CIE-LCHlch(35.19, 46.37, 326.67°)
OKLaboklab(45.74% 0.1073 -0.0701)
OKLCHoklch(45.74% 0.128 326.9)
XYZxyz(13.2694, 8.5932, 20.0246)
Luminance0.0859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B397C #3A7C39
analogous
#59397C #7B397C #7C395C
triadic
#7B397C #7C7B39 #397C7B
tetradic
#7B397C #7C5939 #3A7C39 #395C7C
square
#7B397C #7C5939 #3A7C39 #395C7C
split-complementary
#7B397C #5C7C39 #397C59
monochromatic
#281228 #512652 #7B397C #A54CA6 #BD71BE

Accessibility & contrast

On white

7.73
#7B397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B397C
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B397C#FFFFFF#000000##FFFFFF
##7B397C1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324D7E
Deuteranopia (green-blind)
#46567A
Tritanopia (blue-blind)
#7E4155
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b397c;
/* rgb */ color: rgb(123, 57, 124);
/* oklch */ color: oklch(45.7% 0.128 326.9);
Tailwind
colors: {
  custom: {
    50: '#a373a2',
    500: '#7b397c',
    950: '#000000',
  },
}
SCSS
$custom: #7b397c;
$custom-light: #a373a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b397c",
  "rgb": {
    "r": 123,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 299.104,
    "s": 37.017,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45742,
    "c": 0.12816,
    "h": 326.9
  },
  "luminance": 0.08592
}

Semantic roles & 50–950 ramp

primary
#7B397C
secondary
#6BA76A
accent
#CD5B5D
background
#FAF7FA
surface
#F4EDF3
border
#CEC8CD
text
#0F080F
muted
#7F7B7F

Preview Lab

Preview with #7B397C

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

Preview Lab → · Contrast checker → · Palette generator →

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