#7A3F97#7A3F97

#7A3F97 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.0% C 0.146 H 313.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7A3F97
RGBrgb(122, 63, 151)
HSLhsl(280, 41%, 42%)
HSVhsv(280, 58%, 59%)
CMYKcmyk(19.2%, 58.3%, 0%, 40.8%)
CIE-LABlab(37.71, 41.00, -38.08)
CIE-LCHlch(37.71, 55.95, 317.11°)
OKLaboklab(48.04% 0.1001 -0.1067)
OKLCHoklch(48.04% 0.146 313.2)
XYZxyz(15.3885, 9.9274, 30.3777)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3F97 #5C973F
analogous
#4E3F97 #7A3F97 #973F88
triadic
#7A3F97 #977A3F #3F977A
tetradic
#7A3F97 #974E3F #5C973F #3F8897
square
#7A3F97 #974E3F #5C973F #3F8897
split-complementary
#7A3F97 #88973F #3F974E
monochromatic
#341B41 #572D6C #7A3F97 #9A59BA #B485CC

Accessibility & contrast

On white

7.03
#7A3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7A3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A3F97
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3F97#FFFFFF#000000##FFFFFF
##7A3F971.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569A
Deuteranopia (green-blind)
#3B5A95
Tritanopia (blue-blind)
#774E65
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a3f97;
/* rgb */ color: rgb(122, 63, 151);
/* oklch */ color: oklch(48.0% 0.146 313.2);
Tailwind
colors: {
  custom: {
    50: '#a377b6',
    500: '#7a3f97',
    950: '#000000',
  },
}
SCSS
$custom: #7a3f97;
$custom-light: #a377b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3f97",
  "rgb": {
    "r": 122,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 280.227,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48043,
    "c": 0.14626,
    "h": 313.2
  },
  "luminance": 0.09927
}

Semantic roles & 50–950 ramp

primary
#7A3F97
secondary
#8FB67C
accent
#D1577F
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #7A3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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