#7B45D5#7B45D5

#7B45D5 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.3% C 0.209 H 295.7°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7B45D5
RGBrgb(123, 69, 213)
HSLhsl(263, 63%, 55%)
HSVhsv(263, 68%, 84%)
CMYKcmyk(42.3%, 67.6%, 0%, 16.5%)
CIE-LABlab(43.17, 53.36, -65.80)
CIE-LCHlch(43.17, 84.72, 309.04°)
OKLaboklab(53.35% 0.0904 -0.188)
OKLCHoklch(53.35% 0.209 295.7)
XYZxyz(22.3036, 13.2708, 64.3243)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45D5 #9FD545
analogous
#4557D5 #7B45D5 #C345D5
triadic
#7B45D5 #D57B45 #45D57B
tetradic
#7B45D5 #D54557 #9FD545 #45D5C3
square
#7B45D5 #D54557 #9FD545 #45D5C3
split-complementary
#7B45D5 #D5C345 #57D545
monochromatic
#431D82 #5D29B4 #7B45D5 #9E77E0 #C2A9EC

Accessibility & contrast

On white

5.75
#7B45D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#7B45D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45D5
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45D5#FFFFFF#000000##FFFFFF
##7B45D51.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#0064D2
Tritanopia (blue-blind)
#636888
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7b45d5;
/* rgb */ color: rgb(123, 69, 213);
/* oklch */ color: oklch(53.3% 0.209 295.7);
Tailwind
colors: {
  custom: {
    50: '#a87ce3',
    500: '#7b45d5',
    950: '#000000',
  },
}
SCSS
$custom: #7b45d5;
$custom-light: #a87ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45d5",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 262.5,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.53348,
    "c": 0.20864,
    "h": 295.7
  },
  "luminance": 0.13271
}

Semantic roles & 50–950 ramp

primary
#7B45D5
secondary
#C2D99D
accent
#E642A8
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7B45D5

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

Preview Lab → · Contrast checker → · Palette generator →

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