#7A2BB4#7A2BB4

#7A2BB4 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.203 H 306.2°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7A2BB4
RGBrgb(122, 43, 180)
HSLhsl(275, 61%, 44%)
HSVhsv(275, 76%, 71%)
CMYKcmyk(32.2%, 76.1%, 0%, 29.4%)
CIE-LABlab(36.29, 57.01, -57.75)
CIE-LCHlch(36.29, 81.15, 314.63°)
OKLaboklab(47.65% 0.1201 -0.1643)
OKLCHoklch(47.65% 0.203 306.2)
XYZxyz(17.1263, 9.1608, 44.0371)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BB4 #65B42B
analogous
#362BB4 #7A2BB4 #B42BA9
triadic
#7A2BB4 #B47A2B #2BB47A
tetradic
#7A2BB4 #B4362B #65B42B #2BA9B4
square
#7A2BB4 #B4362B #65B42B #2BA9B4
split-complementary
#7A2BB4 #A9B42B #2BB436
monochromatic
#371351 #591F83 #7A2BB4 #9949D3 #B47ADF

Accessibility & contrast

On white

7.41
#7A2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7A2BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BB4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BB4#FFFFFF#000000##FFFFFF
##7A2BB41.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#704D6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2bb4;
/* rgb */ color: rgb(122, 43, 180);
/* oklch */ color: oklch(47.6% 0.203 306.2);
Tailwind
colors: {
  custom: {
    50: '#a66dcb',
    500: '#7a2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bb4;
$custom-light: #a66dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bb4",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 274.599,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47649,
    "c": 0.20347,
    "h": 306.2
  },
  "luminance": 0.09161
}

Semantic roles & 50–950 ramp

primary
#7A2BB4
secondary
#97C773
accent
#E54388
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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