#7A23A2#7A23A2

#7A23A2 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.195 H 312.2°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7A23A2
RGBrgb(122, 35, 162)
HSLhsl(281, 64%, 39%)
HSVhsv(281, 78%, 64%)
CMYKcmyk(24.7%, 78.4%, 0%, 36.5%)
CIE-LABlab(33.88, 56.10, -50.90)
CIE-LCHlch(33.88, 75.75, 317.79°)
OKLaboklab(45.52% 0.1308 -0.1441)
OKLCHoklch(45.52% 0.195 312.2)
XYZxyz(15.1475, 7.9487, 34.9117)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A23A2 #4BA223
analogous
#3A23A2 #7A23A2 #A2238A
triadic
#7A23A2 #A27A23 #23A27A
tetradic
#7A23A2 #A23A23 #4BA223 #238AA2
square
#7A23A2 #A23A23 #4BA223 #238AA2
split-complementary
#7A23A2 #8AA223 #23A23A
monochromatic
#2E0D3D #541870 #7A23A2 #9F30D2 #B662DD

Accessibility & contrast

On white

8.11
#7A23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7A23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A23A2
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A23A2#FFFFFF#000000##FFFFFF
##7A23A21.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0C519F
Tritanopia (blue-blind)
#754262
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a23a2;
/* rgb */ color: rgb(122, 35, 162);
/* oklch */ color: oklch(45.5% 0.195 312.2);
Tailwind
colors: {
  custom: {
    50: '#a568be',
    500: '#7a23a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a23a2;
$custom-light: #a568be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a23a2",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 281.102,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4552,
    "c": 0.19462,
    "h": 312.2
  },
  "luminance": 0.07948
}

Semantic roles & 50–950 ramp

primary
#7A23A2
secondary
#7EC25E
accent
#E74075
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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