#7A398D#7A398D

#7A398D is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.6% C 0.145 H 318.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7A398D
RGBrgb(122, 57, 141)
HSLhsl(286, 42%, 39%)
HSVhsv(286, 60%, 55%)
CMYKcmyk(13.5%, 59.6%, 0%, 44.7%)
CIE-LABlab(35.96, 41.94, -34.77)
CIE-LCHlch(35.96, 54.48, 320.34°)
OKLaboklab(46.58% 0.1078 -0.097)
OKLCHoklch(46.58% 0.145 318)
XYZxyz(14.2962, 8.9875, 26.1758)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A398D #4C8D39
analogous
#50398D #7A398D #8D3976
triadic
#7A398D #8D7A39 #398D7A
tetradic
#7A398D #8D5039 #4C8D39 #39768D
square
#7A398D #8D5039 #4C8D39 #39768D
split-complementary
#7A398D #768D39 #398D50
monochromatic
#2F1636 #542761 #7A398D #9F4CB7 #B678C8

Accessibility & contrast

On white

7.51
#7A398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7A398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A398D
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A398D#FFFFFF#000000##FFFFFF
##7A398D1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255090
Deuteranopia (green-blind)
#3D578B
Tritanopia (blue-blind)
#7A475D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a398d;
/* rgb */ color: rgb(122, 57, 141);
/* oklch */ color: oklch(46.6% 0.145 318.0);
Tailwind
colors: {
  custom: {
    50: '#a373af',
    500: '#7a398d',
    950: '#000000',
  },
}
SCSS
$custom: #7a398d;
$custom-light: #a373af;
$custom-dark: #000000;
JSON
{
  "hex": "#7a398d",
  "rgb": {
    "r": 122,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 286.429,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46575,
    "c": 0.14498,
    "h": 318
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

primary
#7A398D
secondary
#7FB270
accent
#D25672
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #7A398D

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

Preview Lab → · Contrast checker → · Palette generator →

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