#7B45BD#7B45BD

#7B45BD is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.6% C 0.181 H 300.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7B45BD
RGBrgb(123, 69, 189)
HSLhsl(267, 48%, 51%)
HSVhsv(267, 63%, 74%)
CMYKcmyk(34.9%, 63.5%, 0%, 25.9%)
CIE-LABlab(41.44, 47.21, -54.70)
CIE-LCHlch(41.44, 72.25, 310.80°)
OKLaboklab(51.56% 0.0931 -0.1554)
OKLCHoklch(51.56% 0.181 300.9)
XYZxyz(19.4796, 12.1412, 49.4515)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45BD #87BD45
analogous
#454BBD #7B45BD #B745BD
triadic
#7B45BD #BD7B45 #45BD7B
tetradic
#7B45BD #BD454B #87BD45 #45BDB7
square
#7B45BD #BD454B #87BD45 #45BDB7
split-complementary
#7B45BD #BDB745 #4BBD45
monochromatic
#412464 #5E3491 #7B45BD #9B72CD #BB9FDD

Accessibility & contrast

On white

6.13
#7B45BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7B45BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45BD
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45BD#FFFFFF#000000##FFFFFF
##7B45BD1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#1661BA
Tritanopia (blue-blind)
#6D5F7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b45bd;
/* rgb */ color: rgb(123, 69, 189);
/* oklch */ color: oklch(51.6% 0.181 300.9);
Tailwind
colors: {
  custom: {
    50: '#a67cd2',
    500: '#7b45bd',
    950: '#000000',
  },
}
SCSS
$custom: #7b45bd;
$custom-light: #a67cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45bd",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 267,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51558,
    "c": 0.18115,
    "h": 300.9
  },
  "luminance": 0.12141
}

Semantic roles & 50–950 ramp

primary
#7B45BD
secondary
#B2CA94
accent
#D7519B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7B45BD

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

Preview Lab → · Contrast checker → · Palette generator →

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