#7A23A8#7A23A8

#7A23A8 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.0% C 0.200 H 310.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7A23A8
RGBrgb(122, 35, 168)
HSLhsl(279, 66%, 40%)
HSVhsv(279, 79%, 66%)
CMYKcmyk(27.4%, 79.2%, 0%, 34.1%)
CIE-LABlab(34.33, 57.37, -53.78)
CIE-LCHlch(34.33, 78.63, 316.85°)
OKLaboklab(45.98% 0.1296 -0.1525)
OKLCHoklch(45.98% 0.2 310.3)
XYZxyz(15.6936, 8.1672, 37.7879)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A23A8 #51A823
analogous
#3823A8 #7A23A8 #A82394
triadic
#7A23A8 #A87A23 #23A87A
tetradic
#7A23A8 #A83823 #51A823 #2394A8
square
#7A23A8 #A83823 #51A823 #2394A8
split-complementary
#7A23A8 #94A823 #23A838
monochromatic
#300E43 #551875 #7A23A8 #9D34D5 #B566DF

Accessibility & contrast

On white

7.97
#7A23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7A23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A23A8
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A23A8#FFFFFF#000000##FFFFFF
##7A23A81.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#744466
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a23a8;
/* rgb */ color: rgb(122, 35, 168);
/* oklch */ color: oklch(46.0% 0.200 310.3);
Tailwind
colors: {
  custom: {
    50: '#a569c3',
    500: '#7a23a8',
    950: '#000000',
  },
}
SCSS
$custom: #7a23a8;
$custom-light: #a569c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a23a8",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 279.248,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4598,
    "c": 0.20015,
    "h": 310.3
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#7A23A8
secondary
#84C562
accent
#E83F7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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