#7B2CB5#7B2CB5

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

Color values

HEX#7B2CB5
RGBrgb(123, 44, 181)
HSLhsl(275, 61%, 44%)
HSVhsv(275, 76%, 71%)
CMYKcmyk(32%, 75.7%, 0%, 29%)
CIE-LABlab(36.65, 57.02, -57.76)
CIE-LCHlch(36.65, 81.16, 314.63°)
OKLaboklab(47.95% 0.1203 -0.1643)
OKLCHoklch(47.95% 0.204 306.2)
XYZxyz(17.4077, 9.3487, 44.5945)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CB5 #66B52C
analogous
#372CB5 #7B2CB5 #B52CAB
triadic
#7B2CB5 #B57B2C #2CB57B
tetradic
#7B2CB5 #B5372C #66B52C #2CABB5
square
#7B2CB5 #B5372C #66B52C #2CABB5
split-complementary
#7B2CB5 #ABB52C #2CB537
monochromatic
#381453 #5A2084 #7B2CB5 #9A4BD3 #B57CDF

Accessibility & contrast

On white

7.32
#7B2CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2CB5
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CB5#FFFFFF#000000##FFFFFF
##7B2CB51.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#714E6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2cb5;
/* rgb */ color: rgb(123, 44, 181);
/* oklch */ color: oklch(48.0% 0.204 306.2);
Tailwind
colors: {
  custom: {
    50: '#a66ecc',
    500: '#7b2cb5',
    950: '#000000',
  },
}
SCSS
$custom: #7b2cb5;
$custom-light: #a66ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2cb5",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 274.599,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47952,
    "c": 0.20363,
    "h": 306.2
  },
  "luminance": 0.09349
}

Semantic roles & 50–950 ramp

primary
#7B2CB5
secondary
#98C875
accent
#E44488
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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