#7B2AB7#7B2AB7

#7B2AB7 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.208 H 305.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7B2AB7
RGBrgb(123, 42, 183)
HSLhsl(274, 63%, 44%)
HSVhsv(274, 77%, 72%)
CMYKcmyk(32.8%, 77%, 0%, 28.2%)
CIE-LABlab(36.53, 58.26, -59.13)
CIE-LCHlch(36.53, 83.01, 314.57°)
OKLaboklab(47.92% 0.1217 -0.1683)
OKLCHoklch(47.92% 0.208 305.9)
XYZxyz(17.5417, 9.2859, 45.6588)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AB7 #66B72A
analogous
#342AB7 #7B2AB7 #B72AAD
triadic
#7B2AB7 #B77B2A #2AB77B
tetradic
#7B2AB7 #B7342A #66B72A #2AADB7
square
#7B2AB7 #B7342A #66B72A #2AADB7
split-complementary
#7B2AB7 #ADB72A #2AB734
monochromatic
#381353 #5A1F85 #7B2AB7 #9A49D5 #B57BE1

Accessibility & contrast

On white

7.35
#7B2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7B2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AB7
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AB7#FFFFFF#000000##FFFFFF
##7B2AB71.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2ab7;
/* rgb */ color: rgb(123, 42, 183);
/* oklch */ color: oklch(47.9% 0.208 305.9);
Tailwind
colors: {
  custom: {
    50: '#a76dce',
    500: '#7b2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ab7;
$custom-light: #a76dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ab7",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 274.468,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47918,
    "c": 0.20767,
    "h": 305.9
  },
  "luminance": 0.09286
}

Semantic roles & 50–950 ramp

primary
#7B2AB7
secondary
#98C974
accent
#E64288
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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