#7A23C1#7A23C1

#7A23C1 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.0% C 0.223 H 303.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7A23C1
RGBrgb(122, 35, 193)
HSLhsl(273, 69%, 45%)
HSVhsv(273, 82%, 76%)
CMYKcmyk(36.8%, 81.9%, 0%, 24.3%)
CIE-LABlab(36.35, 62.82, -65.33)
CIE-LCHlch(36.35, 90.63, 313.88°)
OKLaboklab(48.02% 0.123 -0.1865)
OKLCHoklch(48.02% 0.223 303.4)
XYZxyz(18.2504, 9.1899, 51.2541)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A23C1 #6AC123
analogous
#2B23C1 #7A23C1 #C123B9
triadic
#7A23C1 #C17A23 #23C17A
tetradic
#7A23C1 #C12B23 #6AC123 #23B9C1
square
#7A23C1 #C12B23 #6AC123 #23B9C1
split-complementary
#7A23C1 #B9C123 #23C12B
monochromatic
#391059 #591A8D #7A23C1 #9844DD #B578E6

Accessibility & contrast

On white

7.40
#7A23C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7A23C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A23C1
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A23C1#FFFFFF#000000##FFFFFF
##7A23C11.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C5
Deuteranopia (green-blind)
#0055BE
Tritanopia (blue-blind)
#6B4F74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a23c1;
/* rgb */ color: rgb(122, 35, 193);
/* oklch */ color: oklch(48.0% 0.223 303.4);
Tailwind
colors: {
  custom: {
    50: '#a76ad5',
    500: '#7a23c1',
    950: '#000000',
  },
}
SCSS
$custom: #7a23c1;
$custom-light: #a76ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a23c1",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 193
  },
  "hsl": {
    "h": 273.038,
    "s": 69.298,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48015,
    "c": 0.22338,
    "h": 303.4
  },
  "luminance": 0.0919
}

Semantic roles & 50–950 ramp

primary
#7A23C1
secondary
#9BCE72
accent
#EC3C8B
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7A23C1

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

Preview Lab → · Contrast checker → · Palette generator →

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