#7A23AC#7A23AC

#7A23AC is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.204 H 309.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7A23AC
RGBrgb(122, 35, 172)
HSLhsl(278, 66%, 41%)
HSVhsv(278, 80%, 67%)
CMYKcmyk(29.1%, 79.7%, 0%, 32.5%)
CIE-LABlab(34.64, 58.22, -55.67)
CIE-LCHlch(34.64, 80.56, 316.28°)
OKLaboklab(46.29% 0.1287 -0.1581)
OKLCHoklch(46.29% 0.204 309.1)
XYZxyz(16.0719, 8.3185, 39.7807)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A23AC #55AC23
analogous
#3523AC #7A23AC #AC2399
triadic
#7A23AC #AC7A23 #23AC7A
tetradic
#7A23AC #AC3523 #55AC23 #2399AC
square
#7A23AC #AC3523 #55AC23 #2399AC
split-complementary
#7A23AC #99AC23 #23AC35
monochromatic
#320E46 #561979 #7A23AC #9C36D6 #B569E0

Accessibility & contrast

On white

7.88
#7A23AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7A23AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A23AC
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A23AC#FFFFFF#000000##FFFFFF
##7A23AC1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#724668
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a23ac;
/* rgb */ color: rgb(122, 35, 172);
/* oklch */ color: oklch(46.3% 0.204 309.1);
Tailwind
colors: {
  custom: {
    50: '#a669c6',
    500: '#7a23ac',
    950: '#000000',
  },
}
SCSS
$custom: #7a23ac;
$custom-light: #a669c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a23ac",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 172
  },
  "hsl": {
    "h": 278.102,
    "s": 66.184,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46294,
    "c": 0.20386,
    "h": 309.1
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#7A23AC
secondary
#88C664
accent
#E93F7D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A23AC

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

Preview Lab → · Contrast checker → · Palette generator →

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