#7B2DAB#7B2DAB

#7B2DAB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.193 H 309.0°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7B2DAB
RGBrgb(123, 45, 171)
HSLhsl(277, 58%, 42%)
HSVhsv(277, 74%, 67%)
CMYKcmyk(28.1%, 73.7%, 0%, 32.9%)
CIE-LABlab(36.04, 54.37, -52.79)
CIE-LCHlch(36.04, 75.78, 315.84°)
OKLaboklab(47.29% 0.1213 -0.1497)
OKLCHoklch(47.29% 0.193 309)
XYZxyz(16.4560, 9.0283, 39.3959)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DAB #5DAB2D
analogous
#3C2DAB #7B2DAB #AB2D9C
triadic
#7B2DAB #AB7B2D #2DAB7B
tetradic
#7B2DAB #AB3C2D #5DAB2D #2D9CAB
square
#7B2DAB #AB3C2D #5DAB2D #2D9CAB
split-complementary
#7B2DAB #9CAB2D #2DAB3C
monochromatic
#35144A #58207B #7B2DAB #9B47CE #B577DB

Accessibility & contrast

On white

7.49
#7B2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2DAB
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DAB#FFFFFF#000000##FFFFFF
##7B2DAB1.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0856A8
Tritanopia (blue-blind)
#744A6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2dab;
/* rgb */ color: rgb(123, 45, 171);
/* oklch */ color: oklch(47.3% 0.193 309.0);
Tailwind
colors: {
  custom: {
    50: '#a66ec5',
    500: '#7b2dab',
    950: '#000000',
  },
}
SCSS
$custom: #7b2dab;
$custom-light: #a66ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2dab",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 277.143,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47287,
    "c": 0.19267,
    "h": 309
  },
  "luminance": 0.09028
}

Semantic roles & 50–950 ramp

primary
#7B2DAB
secondary
#90C371
accent
#E24681
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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