#7A1BB4#7A1BB4

#7A1BB4 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.4% C 0.218 H 307.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7A1BB4
RGBrgb(122, 27, 180)
HSLhsl(277, 74%, 41%)
HSVhsv(277, 85%, 71%)
CMYKcmyk(32.2%, 85%, 0%, 29.4%)
CIE-LABlab(34.43, 62.42, -60.78)
CIE-LCHlch(34.43, 87.12, 315.76°)
OKLaboklab(46.35% 0.1322 -0.1731)
OKLCHoklch(46.35% 0.218 307.4)
XYZxyz(16.6544, 8.2170, 43.8798)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1BB4 #55B41B
analogous
#2E1BB4 #7A1BB4 #B41BA1
triadic
#7A1BB4 #B47A1B #1BB47A
tetradic
#7A1BB4 #B42E1B #55B41B #1BA1B4
square
#7A1BB4 #B42E1B #55B41B #1BA1B4
split-complementary
#7A1BB4 #A1B41B #1BB42E
monochromatic
#320B4A #56137F #7A1BB4 #9C2DDF #B562E7

Accessibility & contrast

On white

7.94
#7A1BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7A1BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1BB4
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1BB4#FFFFFF#000000##FFFFFF
##7A1BB41.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#70476B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a1bb4;
/* rgb */ color: rgb(122, 27, 180);
/* oklch */ color: oklch(46.4% 0.218 307.4);
Tailwind
colors: {
  custom: {
    50: '#a766cb',
    500: '#7a1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7a1bb4;
$custom-light: #a766cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1bb4",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 277.255,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4635,
    "c": 0.21777,
    "h": 307.4
  },
  "luminance": 0.08217
}

Semantic roles & 50–950 ramp

primary
#7A1BB4
secondary
#88CC5F
accent
#F1377D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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