#7A337E#7A337E

#7A337E is a dark, vivid purple. Relative luminance 0.080; OKLCH L 44.9% C 0.139 H 325.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7A337E
RGBrgb(122, 51, 126)
HSLhsl(297, 42%, 35%)
HSVhsv(297, 60%, 49%)
CMYKcmyk(3.2%, 59.5%, 0%, 50.6%)
CIE-LABlab(34.01, 41.90, -28.59)
CIE-LCHlch(34.01, 50.72, 325.69°)
OKLaboklab(44.88% 0.1149 -0.079)
OKLCHoklch(44.88% 0.139 325.5)
XYZxyz(12.9755, 8.0123, 20.5977)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A337E #377E33
analogous
#55337E #7A337E #7E335D
triadic
#7A337E #7E7A33 #337E7A
tetradic
#7A337E #7E5533 #377E33 #335D7E
square
#7A337E #7E5533 #377E33 #335D7E
split-complementary
#7A337E #5D7E33 #337E55
monochromatic
#261027 #502152 #7A337E #A445AA #BE69C2

Accessibility & contrast

On white

8.07
#7A337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A337E
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A337E#FFFFFF#000000##FFFFFF
##7A337E1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A80
Deuteranopia (green-blind)
#41537C
Tritanopia (blue-blind)
#7D3D53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a337e;
/* rgb */ color: rgb(122, 51, 126);
/* oklch */ color: oklch(44.9% 0.139 325.5);
Tailwind
colors: {
  custom: {
    50: '#a36fa3',
    500: '#7a337e',
    950: '#000000',
  },
}
SCSS
$custom: #7a337e;
$custom-light: #a36fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a337e",
  "rgb": {
    "r": 122,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 296.8,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44879,
    "c": 0.13942,
    "h": 325.5
  },
  "luminance": 0.08012
}

Semantic roles & 50–950 ramp

primary
#7A337E
secondary
#66AA63
accent
#D2565C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F080F
muted
#7F7B7F

Preview Lab

Preview with #7A337E

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

Preview Lab → · Contrast checker → · Palette generator →

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