#7A238A#7A238A

#7A238A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.173 H 320.9°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7A238A
RGBrgb(122, 35, 138)
HSLhsl(291, 60%, 34%)
HSVhsv(291, 75%, 54%)
CMYKcmyk(11.6%, 74.6%, 0%, 45.9%)
CIE-LABlab(32.20, 51.25, -38.92)
CIE-LCHlch(32.20, 64.35, 322.79°)
OKLaboklab(43.81% 0.1342 -0.1089)
OKLCHoklch(43.81% 0.173 320.9)
XYZxyz(13.2140, 7.1753, 24.7288)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A238A #338A23
analogous
#47238A #7A238A #8A2367
triadic
#7A238A #8A7A23 #238A7A
tetradic
#7A238A #8A4723 #338A23 #23678A
square
#7A238A #8A4723 #338A23 #23678A
split-complementary
#7A238A #678A23 #238A47
monochromatic
#240A28 #4F1759 #7A238A #A52FBB #C054D4

Accessibility & contrast

On white

8.62
#7A238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7A238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A238A
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A238A#FFFFFF#000000##FFFFFF
##7A238A1.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#2F4F88
Tritanopia (blue-blind)
#7B3755
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a238a;
/* rgb */ color: rgb(122, 35, 138);
/* oklch */ color: oklch(43.8% 0.173 320.9);
Tailwind
colors: {
  custom: {
    50: '#a467ad',
    500: '#7a238a',
    950: '#000000',
  },
}
SCSS
$custom: #7a238a;
$custom-light: #a467ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a238a",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 290.68,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43805,
    "c": 0.17282,
    "h": 320.9
  },
  "luminance": 0.07175
}

Semantic roles & 50–950 ramp

primary
#7A238A
secondary
#61B751
accent
#E3455E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A238A

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

Preview Lab → · Contrast checker → · Palette generator →

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