#7A2BAB#7A2BAB

#7A2BAB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 47.0% C 0.195 H 308.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7A2BAB
RGBrgb(122, 43, 171)
HSLhsl(277, 60%, 42%)
HSVhsv(277, 75%, 67%)
CMYKcmyk(28.7%, 74.9%, 0%, 32.9%)
CIE-LABlab(35.61, 55.00, -53.50)
CIE-LCHlch(35.61, 76.73, 315.79°)
OKLaboklab(46.95% 0.1219 -0.1518)
OKLCHoklch(46.95% 0.195 308.8)
XYZxyz(16.2391, 8.8059, 39.3644)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BAB #5CAB2B
analogous
#3A2BAB #7A2BAB #AB2B9C
triadic
#7A2BAB #AB7A2B #2BAB7A
tetradic
#7A2BAB #AB3A2B #5CAB2B #2B9CAB
square
#7A2BAB #AB3A2B #5CAB2B #2B9CAB
split-complementary
#7A2BAB #9CAB2B #2BAB3A
monochromatic
#341249 #571F7A #7A2BAB #9A43D0 #B474DC

Accessibility & contrast

On white

7.61
#7A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7A2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BAB
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BAB#FFFFFF#000000##FFFFFF
##7A2BAB1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#724969
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2bab;
/* rgb */ color: rgb(122, 43, 171);
/* oklch */ color: oklch(47.0% 0.195 308.8);
Tailwind
colors: {
  custom: {
    50: '#a56cc5',
    500: '#7a2bab',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bab;
$custom-light: #a56cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bab",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 277.031,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46952,
    "c": 0.19466,
    "h": 308.8
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#7A2BAB
secondary
#8FC46E
accent
#E34581
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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