#7B45D9#7B45D9

#7B45D9 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.7% C 0.213 H 294.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7B45D9
RGBrgb(123, 69, 217)
HSLhsl(262, 66%, 56%)
HSVhsv(262, 68%, 85%)
CMYKcmyk(43.3%, 68.2%, 0%, 14.9%)
CIE-LABlab(43.47, 54.40, -67.60)
CIE-LCHlch(43.47, 86.77, 308.83°)
OKLaboklab(53.66% 0.0898 -0.1933)
OKLCHoklch(53.66% 0.213 294.9)
XYZxyz(22.8175, 13.4764, 67.0312)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45D9 #A3D945
analogous
#4559D9 #7B45D9 #C545D9
triadic
#7B45D9 #D97B45 #45D97B
tetradic
#7B45D9 #D94559 #A3D945 #45D9C5
square
#7B45D9 #D94559 #A3D945 #45D9C5
split-complementary
#7B45D9 #D9C545 #59D945
monochromatic
#431C88 #5C26BB #7B45D9 #9F78E3 #C3ABEE

Accessibility & contrast

On white

5.68
#7B45D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#7B45D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45D9
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45D9#FFFFFF#000000##FFFFFF
##7B45D91.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#0064D6
Tritanopia (blue-blind)
#61698A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7b45d9;
/* rgb */ color: rgb(123, 69, 217);
/* oklch */ color: oklch(53.7% 0.213 294.9);
Tailwind
colors: {
  custom: {
    50: '#a87ce6',
    500: '#7b45d9',
    950: '#000000',
  },
}
SCSS
$custom: #7b45d9;
$custom-light: #a87ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45d9",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 261.892,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5366,
    "c": 0.21316,
    "h": 294.9
  },
  "luminance": 0.13477
}

Semantic roles & 50–950 ramp

primary
#7B45D9
secondary
#C5DB9E
accent
#E93FAB
background
#FAF7FE
surface
#F5EEFC
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7B45D9

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

Preview Lab → · Contrast checker → · Palette generator →

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