#7A4ABC#7A4ABC

#7A4ABC is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.173 H 299.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7A4ABC
RGBrgb(122, 74, 188)
HSLhsl(265, 46%, 51%)
HSVhsv(265, 61%, 74%)
CMYKcmyk(35.1%, 60.6%, 0%, 26.3%)
CIE-LABlab(42.26, 44.05, -52.81)
CIE-LCHlch(42.26, 68.76, 309.83°)
OKLaboklab(52.1% 0.0859 -0.1499)
OKLCHoklch(52.1% 0.173 299.8)
XYZxyz(19.5497, 12.6658, 48.9820)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4ABC #8CBC4A
analogous
#4A53BC #7A4ABC #B34ABC
triadic
#7A4ABC #BC7A4A #4ABC7A
tetradic
#7A4ABC #BC4A53 #8CBC4A #4ABCB3
square
#7A4ABC #BC4A53 #8CBC4A #4ABCB3
split-complementary
#7A4ABC #BCB34A #53BC4A
monochromatic
#412666 #5D3693 #7A4ABC #9B77CD #BCA3DD

Accessibility & contrast

On white

5.94
#7A4ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7A4ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4ABC
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4ABC#FFFFFF#000000##FFFFFF
##7A4ABC1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#2263B9
Tritanopia (blue-blind)
#6C627C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a4abc;
/* rgb */ color: rgb(122, 74, 188);
/* oklch */ color: oklch(52.1% 0.173 299.8);
Tailwind
colors: {
  custom: {
    50: '#a57fd1',
    500: '#7a4abc',
    950: '#000000',
  },
}
SCSS
$custom: #7a4abc;
$custom-light: #a57fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4abc",
  "rgb": {
    "r": 122,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 265.263,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52103,
    "c": 0.17274,
    "h": 299.8
  },
  "luminance": 0.12666
}

Semantic roles & 50–950 ramp

primary
#7A4ABC
secondary
#B5CA98
accent
#D6529E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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