#7A1FB4#7A1FB4

#7A1FB4 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.6% C 0.215 H 307.1°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7A1FB4
RGBrgb(122, 31, 180)
HSLhsl(277, 71%, 41%)
HSVhsv(277, 83%, 71%)
CMYKcmyk(32.2%, 82.8%, 0%, 29.4%)
CIE-LABlab(34.83, 61.25, -60.13)
CIE-LCHlch(34.83, 85.83, 315.53°)
OKLaboklab(46.63% 0.1296 -0.1712)
OKLCHoklch(46.63% 0.215 307.1)
XYZxyz(16.7525, 8.4130, 43.9125)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FB4 #59B41F
analogous
#2F1FB4 #7A1FB4 #B41FA4
triadic
#7A1FB4 #B47A1F #1FB47A
tetradic
#7A1FB4 #B42F1F #59B41F #1FA4B4
square
#7A1FB4 #B42F1F #59B41F #1FA4B4
split-complementary
#7A1FB4 #A4B41F #1FB42F
monochromatic
#330D4C #571680 #7A1FB4 #9B34DC #B568E5

Accessibility & contrast

On white

7.83
#7A1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7A1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FB4
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FB4#FFFFFF#000000##FFFFFF
##7A1FB41.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#70486C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a1fb4;
/* rgb */ color: rgb(122, 31, 180);
/* oklch */ color: oklch(46.6% 0.215 307.1);
Tailwind
colors: {
  custom: {
    50: '#a668cb',
    500: '#7a1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fb4;
$custom-light: #a668cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fb4",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 276.644,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46626,
    "c": 0.21469,
    "h": 307.1
  },
  "luminance": 0.08413
}

Semantic roles & 50–950 ramp

primary
#7A1FB4
secondary
#8CCB64
accent
#ED3A80
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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