#7B2AB5#7B2AB5

#7B2AB5 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.206 H 306.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7B2AB5
RGBrgb(123, 42, 181)
HSLhsl(275, 62%, 44%)
HSVhsv(275, 77%, 71%)
CMYKcmyk(32%, 76.8%, 0%, 29%)
CIE-LABlab(36.37, 57.81, -58.20)
CIE-LCHlch(36.37, 82.03, 314.80°)
OKLaboklab(47.76% 0.1221 -0.1656)
OKLCHoklch(47.76% 0.206 306.4)
XYZxyz(17.3350, 9.2033, 44.5703)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AB5 #64B52A
analogous
#352AB5 #7B2AB5 #B52AA9
triadic
#7B2AB5 #B57B2A #2AB57B
tetradic
#7B2AB5 #B5352A #64B52A #2AA9B5
square
#7B2AB5 #B5352A #64B52A #2AA9B5
split-complementary
#7B2AB5 #A9B52A #2AB535
monochromatic
#371352 #591E83 #7B2AB5 #9A48D4 #B579E0

Accessibility & contrast

On white

7.39
#7B2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7B2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AB5
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AB5#FFFFFF#000000##FFFFFF
##7B2AB51.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#714D6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2ab5;
/* rgb */ color: rgb(123, 42, 181);
/* oklch */ color: oklch(47.8% 0.206 306.4);
Tailwind
colors: {
  custom: {
    50: '#a76dcc',
    500: '#7b2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ab5;
$custom-light: #a76dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ab5",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 274.964,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47759,
    "c": 0.20573,
    "h": 306.4
  },
  "luminance": 0.09203
}

Semantic roles & 50–950 ramp

primary
#7B2AB5
secondary
#96C873
accent
#E54286
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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