#7B2AB3#7B2AB3

#7B2AB3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.204 H 307.0°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7B2AB3
RGBrgb(123, 42, 179)
HSLhsl(275, 62%, 43%)
HSVhsv(275, 77%, 70%)
CMYKcmyk(31.3%, 76.5%, 0%, 29.8%)
CIE-LABlab(36.22, 57.36, -57.27)
CIE-LCHlch(36.22, 81.05, 315.05°)
OKLaboklab(47.6% 0.1226 -0.1628)
OKLCHoklch(47.6% 0.204 307)
XYZxyz(17.1313, 9.1218, 43.4973)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AB3 #62B32A
analogous
#362AB3 #7B2AB3 #B32AA6
triadic
#7B2AB3 #B37B2A #2AB37B
tetradic
#7B2AB3 #B3362A #62B32A #2AA6B3
square
#7B2AB3 #B3362A #62B32A #2AA6B3
split-complementary
#7B2AB3 #A6B32A #2AB336
monochromatic
#371350 #591E81 #7B2AB3 #9A46D4 #B578DF

Accessibility & contrast

On white

7.44
#7B2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7B2AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AB3
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AB3#FFFFFF#000000##FFFFFF
##7B2AB31.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#714C6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2ab3;
/* rgb */ color: rgb(123, 42, 179);
/* oklch */ color: oklch(47.6% 0.204 307.0);
Tailwind
colors: {
  custom: {
    50: '#a66ccb',
    500: '#7b2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ab3;
$custom-light: #a66ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ab3",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 275.474,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47602,
    "c": 0.20379,
    "h": 307
  },
  "luminance": 0.09122
}

Semantic roles & 50–950 ramp

primary
#7B2AB3
secondary
#95C772
accent
#E54385
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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