#7A337B#7A337B

#7A337B is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.7% C 0.137 H 327.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7A337B
RGBrgb(122, 51, 123)
HSLhsl(299, 41%, 34%)
HSVhsv(299, 59%, 48%)
CMYKcmyk(0.8%, 58.5%, 0%, 51.8%)
CIE-LABlab(33.85, 41.32, -26.97)
CIE-LCHlch(33.85, 49.34, 326.87°)
OKLaboklab(44.71% 0.1146 -0.0743)
OKLCHoklch(44.71% 0.137 327)
XYZxyz(12.7848, 7.9361, 19.5935)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A337B #347B33
analogous
#56337B #7A337B #7B3358
triadic
#7A337B #7B7A33 #337B7A
tetradic
#7A337B #7B5633 #347B33 #33587B
square
#7A337B #7B5633 #347B33 #33587B
split-complementary
#7A337B #587B33 #337B56
monochromatic
#240F24 #4F2150 #7A337B #A545A6 #BF68C0

Accessibility & contrast

On white

8.12
#7A337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7A337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A337B
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A337B#FFFFFF#000000##FFFFFF
##7A337B1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4A7D
Deuteranopia (green-blind)
#425379
Tritanopia (blue-blind)
#7D3C52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a337b;
/* rgb */ color: rgb(122, 51, 123);
/* oklch */ color: oklch(44.7% 0.137 327.0);
Tailwind
colors: {
  custom: {
    50: '#a36fa1',
    500: '#7a337b',
    950: '#000000',
  },
}
SCSS
$custom: #7a337b;
$custom-light: #a36fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a337b",
  "rgb": {
    "r": 122,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 299.167,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44711,
    "c": 0.13655,
    "h": 327
  },
  "luminance": 0.07935
}

Semantic roles & 50–950 ramp

primary
#7A337B
secondary
#63A862
accent
#D15758
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F080F
muted
#7F7B7E

Preview Lab

Preview with #7A337B

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

Preview Lab → · Contrast checker → · Palette generator →

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