#7A337D#7A337D

#7A337D is a dark, vivid purple. Relative luminance 0.080; OKLCH L 44.8% C 0.138 H 326.0°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7A337D
RGBrgb(122, 51, 125)
HSLhsl(298, 42%, 35%)
HSVhsv(298, 59%, 49%)
CMYKcmyk(2.4%, 59.2%, 0%, 51%)
CIE-LABlab(33.95, 41.70, -28.05)
CIE-LCHlch(33.95, 50.26, 326.08°)
OKLaboklab(44.82% 0.1148 -0.0774)
OKLCHoklch(44.82% 0.138 326)
XYZxyz(12.9113, 7.9866, 20.2596)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A337D #367D33
analogous
#55337D #7A337D #7D335B
triadic
#7A337D #7D7A33 #337D7A
tetradic
#7A337D #7D5533 #367D33 #335B7D
square
#7A337D #7D5533 #367D33 #335B7D
split-complementary
#7A337D #5B7D33 #337D55
monochromatic
#251026 #502152 #7A337D #A445A8 #BE69C2

Accessibility & contrast

On white

8.09
#7A337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7A337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A337D
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A337D#FFFFFF#000000##FFFFFF
##7A337D1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7F
Deuteranopia (green-blind)
#41537B
Tritanopia (blue-blind)
#7D3C53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a337d;
/* rgb */ color: rgb(122, 51, 125);
/* oklch */ color: oklch(44.8% 0.138 326.0);
Tailwind
colors: {
  custom: {
    50: '#a36fa3',
    500: '#7a337d',
    950: '#000000',
  },
}
SCSS
$custom: #7a337d;
$custom-light: #a36fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a337d",
  "rgb": {
    "r": 122,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 297.568,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44823,
    "c": 0.13846,
    "h": 326
  },
  "luminance": 0.07986
}

Semantic roles & 50–950 ramp

primary
#7A337D
secondary
#65AA62
accent
#D2565B
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#0F080F
muted
#7F7B7F

Preview Lab

Preview with #7A337D

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

Preview Lab → · Contrast checker → · Palette generator →

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