#7B45BC#7B45BC

#7B45BC is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.5% C 0.180 H 301.2°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7B45BC
RGBrgb(123, 69, 188)
HSLhsl(267, 47%, 50%)
HSVhsv(267, 63%, 74%)
CMYKcmyk(34.6%, 63.3%, 0%, 26.3%)
CIE-LABlab(41.37, 46.96, -54.23)
CIE-LCHlch(41.37, 71.73, 310.89°)
OKLaboklab(51.49% 0.0932 -0.154)
OKLCHoklch(51.49% 0.18 301.2)
XYZxyz(19.3714, 12.0979, 48.8818)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45BC #86BC45
analogous
#454ABC #7B45BC #B745BC
triadic
#7B45BC #BC7B45 #45BC7B
tetradic
#7B45BC #BC454A #86BC45 #45BCB7
square
#7B45BC #BC454A #86BC45 #45BCB7
split-complementary
#7B45BC #BCB745 #4ABC45
monochromatic
#402463 #5E3490 #7B45BC #9B72CC #BB9FDC

Accessibility & contrast

On white

6.14
#7B45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7B45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45BC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45BC#FFFFFF#000000##FFFFFF
##7B45BC1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#1861B9
Tritanopia (blue-blind)
#6D5F7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b45bc;
/* rgb */ color: rgb(123, 69, 188);
/* oklch */ color: oklch(51.5% 0.180 301.2);
Tailwind
colors: {
  custom: {
    50: '#a67cd1',
    500: '#7b45bc',
    950: '#000000',
  },
}
SCSS
$custom: #7b45bc;
$custom-light: #a67cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45bc",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 267.227,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51487,
    "c": 0.17999,
    "h": 301.2
  },
  "luminance": 0.12098
}

Semantic roles & 50–950 ramp

primary
#7B45BC
secondary
#B1C994
accent
#D7519A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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