#7A23A5#7A23A5

#7A23A5 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.197 H 311.3°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7A23A5
RGBrgb(122, 35, 165)
HSLhsl(280, 65%, 39%)
HSVhsv(280, 79%, 65%)
CMYKcmyk(26.1%, 78.8%, 0%, 35.3%)
CIE-LABlab(34.10, 56.73, -52.34)
CIE-LCHlch(34.10, 77.19, 317.31°)
OKLaboklab(45.75% 0.1302 -0.1483)
OKLCHoklch(45.75% 0.197 311.3)
XYZxyz(15.4173, 8.0566, 36.3329)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A23A5 #4EA523
analogous
#3923A5 #7A23A5 #A5238F
triadic
#7A23A5 #A57A23 #23A57A
tetradic
#7A23A5 #A53923 #4EA523 #238FA5
square
#7A23A5 #A53923 #4EA523 #238FA5
split-complementary
#7A23A5 #8FA523 #23A539
monochromatic
#2F0E40 #551873 #7A23A5 #9E32D3 #B664DE

Accessibility & contrast

On white

8.04
#7A23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7A23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A23A5
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A23A5#FFFFFF#000000##FFFFFF
##7A23A51.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0152A2
Tritanopia (blue-blind)
#744364
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a23a5;
/* rgb */ color: rgb(122, 35, 165);
/* oklch */ color: oklch(45.7% 0.197 311.3);
Tailwind
colors: {
  custom: {
    50: '#a569c0',
    500: '#7a23a5',
    950: '#000000',
  },
}
SCSS
$custom: #7a23a5;
$custom-light: #a569c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a23a5",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 280.154,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45749,
    "c": 0.19739,
    "h": 311.3
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#7A23A5
secondary
#81C460
accent
#E84077
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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