#7B2AB8#7B2AB8

#7B2AB8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.209 H 305.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7B2AB8
RGBrgb(123, 42, 184)
HSLhsl(274, 63%, 44%)
HSVhsv(274, 77%, 72%)
CMYKcmyk(33.2%, 77.2%, 0%, 27.8%)
CIE-LABlab(36.61, 58.48, -59.59)
CIE-LCHlch(36.61, 83.50, 314.46°)
OKLaboklab(48% 0.1214 -0.1697)
OKLCHoklch(48% 0.209 305.6)
XYZxyz(17.6461, 9.3277, 46.2089)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AB8 #67B82A
analogous
#342AB8 #7B2AB8 #B82AAE
triadic
#7B2AB8 #B87B2A #2AB87B
tetradic
#7B2AB8 #B8342A #67B82A #2AAEB8
square
#7B2AB8 #B8342A #67B82A #2AAEB8
split-complementary
#7B2AB8 #AEB82A #2AB834
monochromatic
#381354 #5A1F86 #7B2AB8 #994AD6 #B57BE1

Accessibility & contrast

On white

7.33
#7B2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2AB8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AB8#FFFFFF#000000##FFFFFF
##7B2AB81.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#704E70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2ab8;
/* rgb */ color: rgb(123, 42, 184);
/* oklch */ color: oklch(48.0% 0.209 305.6);
Tailwind
colors: {
  custom: {
    50: '#a76dce',
    500: '#7b2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ab8;
$custom-light: #a76dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ab8",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 274.225,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47998,
    "c": 0.20864,
    "h": 305.6
  },
  "luminance": 0.09328
}

Semantic roles & 50–950 ramp

primary
#7B2AB8
secondary
#99C975
accent
#E64288
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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