#7A237A#7A237A

#7A237A is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.159 H 327.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7A237A
RGBrgb(122, 35, 122)
HSLhsl(300, 55%, 31%)
HSVhsv(300, 71%, 48%)
CMYKcmyk(0%, 71.3%, 0%, 52.2%)
CIE-LABlab(31.22, 48.27, -30.49)
CIE-LCHlch(31.22, 57.09, 327.72°)
OKLaboklab(42.79% 0.1346 -0.0844)
OKLCHoklch(42.79% 0.159 327.9)
XYZxyz(12.1398, 6.7456, 19.0712)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A237A #237A23
analogous
#4E237A #7A237A #7A234E
triadic
#7A237A #7A7A23 #237A7A
tetradic
#7A237A #7A4E23 #237A23 #234E7A
square
#7A237A #7A4E23 #237A23 #234E7A
split-complementary
#7A237A #4E7A23 #237A4E
monochromatic
#1B081B #4A154A #7A237A #AA31AA #CC4CCC

Accessibility & contrast

On white

8.94
#7A237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A237A
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A237A#FFFFFF#000000##FFFFFF
##7A237A1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15427C
Deuteranopia (green-blind)
#394D78
Tritanopia (blue-blind)
#7E304C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a237a;
/* rgb */ color: rgb(122, 35, 122);
/* oklch */ color: oklch(42.8% 0.159 327.9);
Tailwind
colors: {
  custom: {
    50: '#a367a1',
    500: '#7a237a',
    950: '#000000',
  },
}
SCSS
$custom: #7a237a;
$custom-light: #a367a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a237a",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 300,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42786,
    "c": 0.15885,
    "h": 327.9
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#7A237A
secondary
#4CAD4C
accent
#DF4949
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #7A237A

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

Preview Lab → · Contrast checker → · Palette generator →

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