#7A23A9#7A23A9

#7A23A9 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.1% C 0.201 H 310.0°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7A23A9
RGBrgb(122, 35, 169)
HSLhsl(279, 66%, 40%)
HSVhsv(279, 79%, 66%)
CMYKcmyk(27.8%, 79.3%, 0%, 33.7%)
CIE-LABlab(34.41, 57.58, -54.25)
CIE-LCHlch(34.41, 79.11, 316.71°)
OKLaboklab(46.06% 0.1294 -0.1539)
OKLCHoklch(46.06% 0.201 310)
XYZxyz(15.7871, 8.2046, 38.2804)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A23A9 #52A923
analogous
#3723A9 #7A23A9 #A92395
triadic
#7A23A9 #A97A23 #23A97A
tetradic
#7A23A9 #A93723 #52A923 #2395A9
square
#7A23A9 #A93723 #52A923 #2395A9
split-complementary
#7A23A9 #95A923 #23A937
monochromatic
#310E44 #551976 #7A23A9 #9D34D5 #B567DF

Accessibility & contrast

On white

7.95
#7A23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7A23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A23A9
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A23A9#FFFFFF#000000##FFFFFF
##7A23A91.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0052A6
Tritanopia (blue-blind)
#734566
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a23a9;
/* rgb */ color: rgb(122, 35, 169);
/* oklch */ color: oklch(46.1% 0.201 310.0);
Tailwind
colors: {
  custom: {
    50: '#a569c3',
    500: '#7a23a9',
    950: '#000000',
  },
}
SCSS
$custom: #7a23a9;
$custom-light: #a569c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a23a9",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 278.955,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.46058,
    "c": 0.20108,
    "h": 310
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

primary
#7A23A9
secondary
#85C563
accent
#E93F7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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