#7A23A1#7A23A1

#7A23A1 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.194 H 312.6°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7A23A1
RGBrgb(122, 35, 161)
HSLhsl(281, 64%, 38%)
HSVhsv(281, 78%, 63%)
CMYKcmyk(24.2%, 78.3%, 0%, 36.9%)
CIE-LABlab(33.80, 55.89, -50.41)
CIE-LCHlch(33.80, 75.27, 317.95°)
OKLaboklab(45.45% 0.131 -0.1427)
OKLCHoklch(45.45% 0.194 312.6)
XYZxyz(15.0589, 7.9133, 34.4455)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A23A1 #4AA123
analogous
#3B23A1 #7A23A1 #A12389
triadic
#7A23A1 #A17A23 #23A17A
tetradic
#7A23A1 #A13B23 #4AA123 #2389A1
square
#7A23A1 #A13B23 #4AA123 #2389A1
split-complementary
#7A23A1 #89A123 #23A13B
monochromatic
#2E0D3C #54186F #7A23A1 #A02FD2 #B762DD

Accessibility & contrast

On white

8.13
#7A23A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7A23A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A23A1
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A23A1#FFFFFF#000000##FFFFFF
##7A23A11.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#0F519E
Tritanopia (blue-blind)
#754162
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a23a1;
/* rgb */ color: rgb(122, 35, 161);
/* oklch */ color: oklch(45.4% 0.194 312.6);
Tailwind
colors: {
  custom: {
    50: '#a568be',
    500: '#7a23a1',
    950: '#000000',
  },
}
SCSS
$custom: #7a23a1;
$custom-light: #a568be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a23a1",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 281.429,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45445,
    "c": 0.19371,
    "h": 312.6
  },
  "luminance": 0.07913
}

Semantic roles & 50–950 ramp

primary
#7A23A1
secondary
#7DC25E
accent
#E74174
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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