#7B45BA#7B45BA

#7B45BA is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.3% C 0.178 H 301.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7B45BA
RGBrgb(123, 69, 186)
HSLhsl(268, 46%, 50%)
HSVhsv(268, 63%, 73%)
CMYKcmyk(33.9%, 62.9%, 0%, 27.1%)
CIE-LABlab(41.24, 46.45, -53.27)
CIE-LCHlch(41.24, 70.68, 311.09°)
OKLaboklab(51.35% 0.0933 -0.1512)
OKLCHoklch(51.35% 0.178 301.7)
XYZxyz(19.1573, 12.0123, 47.7542)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45BA #84BA45
analogous
#454ABA #7B45BA #B545BA
triadic
#7B45BA #BA7B45 #45BA7B
tetradic
#7B45BA #BA454A #84BA45 #45BAB5
square
#7B45BA #BA454A #84BA45 #45BAB5
split-complementary
#7B45BA #BAB545 #4ABA45
monochromatic
#402461 #5D348D #7B45BA #9B72CB #BA9EDB

Accessibility & contrast

On white

6.17
#7B45BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7B45BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45BA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45BA#FFFFFF#000000##FFFFFF
##7B45BA1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#1D61B7
Tritanopia (blue-blind)
#6E5E79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b45ba;
/* rgb */ color: rgb(123, 69, 186);
/* oklch */ color: oklch(51.3% 0.178 301.7);
Tailwind
colors: {
  custom: {
    50: '#a57ccf',
    500: '#7b45ba',
    950: '#000000',
  },
}
SCSS
$custom: #7b45ba;
$custom-light: #a57ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45ba",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 267.692,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.51346,
    "c": 0.17767,
    "h": 301.7
  },
  "luminance": 0.12012
}

Semantic roles & 50–950 ramp

primary
#7B45BA
secondary
#AFC893
accent
#D65299
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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