#7A1EB3#7A1EB3

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

Color values

HEX#7A1EB3
RGBrgb(122, 30, 179)
HSLhsl(277, 71%, 41%)
HSVhsv(277, 83%, 70%)
CMYKcmyk(31.8%, 83.2%, 0%, 29.8%)
CIE-LABlab(34.64, 61.34, -59.84)
CIE-LCHlch(34.64, 85.69, 315.71°)
OKLaboklab(46.47% 0.1305 -0.1703)
OKLCHoklch(46.47% 0.215 307.5)
XYZxyz(16.6252, 8.3210, 43.3694)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1EB3 #57B31E
analogous
#2F1EB3 #7A1EB3 #B31EA1
triadic
#7A1EB3 #B37A1E #1EB37A
tetradic
#7A1EB3 #B32F1E #57B31E #1EA1B3
square
#7A1EB3 #B32F1E #57B31E #1EA1B3
split-complementary
#7A1EB3 #A1B31E #1EB32F
monochromatic
#330C4A #56157F #7A1EB3 #9B32DD #B566E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A1EB3#FFFFFF#000000##FFFFFF
##7A1EB31.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)
#004FB7
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#70476B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a1eb3;
/* rgb */ color: rgb(122, 30, 179);
/* oklch */ color: oklch(46.5% 0.215 307.5);
Tailwind
colors: {
  custom: {
    50: '#a667cb',
    500: '#7a1eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7a1eb3;
$custom-light: #a667cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1eb3",
  "rgb": {
    "r": 122,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 277.047,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46472,
    "c": 0.21459,
    "h": 307.5
  },
  "luminance": 0.08321
}

Semantic roles & 50–950 ramp

primary
#7A1EB3
secondary
#8ACB62
accent
#EE3A7F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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