#7B45BB#7B45BB

#7B45BB is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.4% C 0.179 H 301.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7B45BB
RGBrgb(123, 69, 187)
HSLhsl(267, 46%, 50%)
HSVhsv(267, 63%, 73%)
CMYKcmyk(34.2%, 63.1%, 0%, 26.7%)
CIE-LABlab(41.30, 46.70, -53.75)
CIE-LCHlch(41.30, 71.21, 310.99°)
OKLaboklab(51.42% 0.0932 -0.1526)
OKLCHoklch(51.42% 0.179 301.4)
XYZxyz(19.2640, 12.0550, 48.3160)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45BB #85BB45
analogous
#454ABB #7B45BB #B645BB
triadic
#7B45BB #BB7B45 #45BB7B
tetradic
#7B45BB #BB454A #85BB45 #45BBB6
square
#7B45BB #BB454A #85BB45 #45BBB6
split-complementary
#7B45BB #BBB645 #4ABB45
monochromatic
#402462 #5E348F #7B45BB #9B72CB #BB9FDC

Accessibility & contrast

On white

6.16
#7B45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7B45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45BB
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45BB#FFFFFF#000000##FFFFFF
##7B45BB1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#1B61B8
Tritanopia (blue-blind)
#6E5F7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b45bb;
/* rgb */ color: rgb(123, 69, 187);
/* oklch */ color: oklch(51.4% 0.179 301.4);
Tailwind
colors: {
  custom: {
    50: '#a67cd0',
    500: '#7b45bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b45bb;
$custom-light: #a67cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45bb",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 267.458,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51416,
    "c": 0.17884,
    "h": 301.4
  },
  "luminance": 0.12055
}

Semantic roles & 50–950 ramp

primary
#7B45BB
secondary
#B0C894
accent
#D6529A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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