#7B45CB#7B45CB

#7B45CB is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.197 H 297.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7B45CB
RGBrgb(123, 69, 203)
HSLhsl(264, 56%, 53%)
HSVhsv(264, 66%, 80%)
CMYKcmyk(39.4%, 66%, 0%, 20.4%)
CIE-LABlab(42.43, 50.78, -61.24)
CIE-LCHlch(42.43, 79.56, 309.66°)
OKLaboklab(52.58% 0.0917 -0.1746)
OKLCHoklch(52.58% 0.197 297.7)
XYZxyz(21.0732, 12.7787, 57.8446)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45CB #95CB45
analogous
#4552CB #7B45CB #BE45CB
triadic
#7B45CB #CB7B45 #45CB7B
tetradic
#7B45CB #CB4552 #95CB45 #45CBBE
square
#7B45CB #CB4552 #95CB45 #45CBBE
split-complementary
#7B45CB #CBBE45 #52CB45
monochromatic
#432175 #5E2EA5 #7B45CB #9D75D8 #BFA5E6

Accessibility & contrast

On white

5.91
#7B45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7B45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45CB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45CB#FFFFFF#000000##FFFFFF
##7B45CB1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#686482
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b45cb;
/* rgb */ color: rgb(123, 69, 203);
/* oklch */ color: oklch(52.6% 0.197 297.7);
Tailwind
colors: {
  custom: {
    50: '#a77cdc',
    500: '#7b45cb',
    950: '#000000',
  },
}
SCSS
$custom: #7b45cb;
$custom-light: #a77cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45cb",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 264.179,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52584,
    "c": 0.19727,
    "h": 297.7
  },
  "luminance": 0.12779
}

Semantic roles & 50–950 ramp

primary
#7B45CB
secondary
#BBD399
accent
#E048A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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