#7B45C5#7B45C5

#7B45C5 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.190 H 299.0°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7B45C5
RGBrgb(123, 69, 197)
HSLhsl(265, 52%, 52%)
HSVhsv(265, 65%, 77%)
CMYKcmyk(37.6%, 65%, 0%, 22.7%)
CIE-LABlab(42.00, 49.24, -58.46)
CIE-LCHlch(42.00, 76.44, 310.11°)
OKLaboklab(52.14% 0.0924 -0.1665)
OKLCHoklch(52.14% 0.19 299)
XYZxyz(20.3720, 12.4982, 54.1516)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45C5 #8FC545
analogous
#454FC5 #7B45C5 #BB45C5
triadic
#7B45C5 #C57B45 #45C57B
tetradic
#7B45C5 #C5454F #8FC545 #45C5BB
square
#7B45C5 #C5454F #8FC545 #45C5BB
split-complementary
#7B45C5 #C5BB45 #4FC545
monochromatic
#42226D #5E319C #7B45C5 #9C74D4 #BDA2E2

Accessibility & contrast

On white

6.00
#7B45C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7B45C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45C5
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45C5#FFFFFF#000000##FFFFFF
##7B45C51.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#6A627F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b45c5;
/* rgb */ color: rgb(123, 69, 197);
/* oklch */ color: oklch(52.1% 0.190 299.0);
Tailwind
colors: {
  custom: {
    50: '#a67cd7',
    500: '#7b45c5',
    950: '#000000',
  },
}
SCSS
$custom: #7b45c5;
$custom-light: #a67cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45c5",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 265.313,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52138,
    "c": 0.19038,
    "h": 299
  },
  "luminance": 0.12498
}

Semantic roles & 50–950 ramp

primary
#7B45C5
secondary
#B7CF97
accent
#DC4C9F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7B45C5

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

Preview Lab → · Contrast checker → · Palette generator →

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