#7A2BB1#7A2BB1

#7A2BB1 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.201 H 307.0°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7A2BB1
RGBrgb(122, 43, 177)
HSLhsl(275, 61%, 43%)
HSVhsv(275, 76%, 69%)
CMYKcmyk(31.1%, 75.7%, 0%, 30.6%)
CIE-LABlab(36.06, 56.34, -56.34)
CIE-LCHlch(36.06, 79.67, 315.00°)
OKLaboklab(47.41% 0.1207 -0.1601)
OKLCHoklch(47.41% 0.201 307)
XYZxyz(16.8240, 9.0399, 42.4450)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BB1 #62B12B
analogous
#372BB1 #7A2BB1 #B12BA5
triadic
#7A2BB1 #B17A2B #2BB17A
tetradic
#7A2BB1 #B1372B #62B12B #2BA5B1
square
#7A2BB1 #B1372B #62B12B #2BA5B1
split-complementary
#7A2BB1 #A5B12B #2BB137
monochromatic
#36134F #581F80 #7A2BB1 #9947D2 #B478DE

Accessibility & contrast

On white

7.48
#7A2BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7A2BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BB1
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BB1#FFFFFF#000000##FFFFFF
##7A2BB11.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#714C6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2bb1;
/* rgb */ color: rgb(122, 43, 177);
/* oklch */ color: oklch(47.4% 0.201 307.0);
Tailwind
colors: {
  custom: {
    50: '#a66dc9',
    500: '#7a2bb1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bb1;
$custom-light: #a66dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bb1",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 275.373,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47414,
    "c": 0.20053,
    "h": 307
  },
  "luminance": 0.0904
}

Semantic roles & 50–950 ramp

primary
#7A2BB1
secondary
#94C672
accent
#E44486
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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