#7B45D2#7B45D2

#7B45D2 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.1% C 0.205 H 296.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7B45D2
RGBrgb(123, 69, 210)
HSLhsl(263, 61%, 55%)
HSVhsv(263, 67%, 82%)
CMYKcmyk(41.4%, 67.1%, 0%, 17.6%)
CIE-LABlab(42.94, 52.59, -64.44)
CIE-LCHlch(42.94, 83.18, 309.21°)
OKLaboklab(53.12% 0.0908 -0.1841)
OKLCHoklch(53.12% 0.205 296.3)
XYZxyz(21.9263, 13.1199, 62.3374)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45D2 #9CD245
analogous
#4555D2 #7B45D2 #C245D2
triadic
#7B45D2 #D27B45 #45D27B
tetradic
#7B45D2 #D24555 #9CD245 #45D2C2
square
#7B45D2 #D24555 #9CD245 #45D2C2
split-complementary
#7B45D2 #D2C245 #55D245
monochromatic
#431F7E #5D2AAF #7B45D2 #9E76DE #C1A8EA

Accessibility & contrast

On white

5.79
#7B45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7B45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45D2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45D2#FFFFFF#000000##FFFFFF
##7B45D21.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0063CF
Tritanopia (blue-blind)
#656786
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b45d2;
/* rgb */ color: rgb(123, 69, 210);
/* oklch */ color: oklch(53.1% 0.205 296.3);
Tailwind
colors: {
  custom: {
    50: '#a87ce1',
    500: '#7b45d2',
    950: '#000000',
  },
}
SCSS
$custom: #7b45d2;
$custom-light: #a87ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45d2",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 262.979,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.53116,
    "c": 0.20525,
    "h": 296.3
  },
  "luminance": 0.1312
}

Semantic roles & 50–950 ramp

primary
#7B45D2
secondary
#C0D79C
accent
#E444A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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