#7B2AB9#7B2AB9

#7B2AB9 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.210 H 305.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7B2AB9
RGBrgb(123, 42, 185)
HSLhsl(274, 63%, 45%)
HSVhsv(274, 77%, 73%)
CMYKcmyk(33.5%, 77.3%, 0%, 27.5%)
CIE-LABlab(36.69, 58.71, -60.06)
CIE-LCHlch(36.69, 83.98, 314.35°)
OKLaboklab(48.08% 0.1212 -0.171)
OKLCHoklch(48.08% 0.21 305.3)
XYZxyz(17.7513, 9.3698, 46.7629)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AB9 #68B92A
analogous
#332AB9 #7B2AB9 #B92AB0
triadic
#7B2AB9 #B97B2A #2AB97B
tetradic
#7B2AB9 #B9332A #68B92A #2AB0B9
square
#7B2AB9 #B9332A #68B92A #2AB0B9
split-complementary
#7B2AB9 #B0B92A #2AB933
monochromatic
#391355 #5A1F87 #7B2AB9 #994AD6 #B57CE1

Accessibility & contrast

On white

7.31
#7B2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7B2AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AB9
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AB9#FFFFFF#000000##FFFFFF
##7B2AB91.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#6F4F71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2ab9;
/* rgb */ color: rgb(123, 42, 185);
/* oklch */ color: oklch(48.1% 0.210 305.3);
Tailwind
colors: {
  custom: {
    50: '#a76dcf',
    500: '#7b2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ab9;
$custom-light: #a76dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ab9",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 273.986,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48078,
    "c": 0.20961,
    "h": 305.3
  },
  "luminance": 0.0937
}

Semantic roles & 50–950 ramp

primary
#7B2AB9
secondary
#9ACA75
accent
#E64289
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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