#7B45E6#7B45E6

#7B45E6 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.228 H 292.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7B45E6
RGBrgb(123, 69, 230)
HSLhsl(260, 76%, 59%)
HSVhsv(260, 70%, 90%)
CMYKcmyk(46.5%, 70%, 0%, 9.8%)
CIE-LABlab(44.49, 57.81, -73.34)
CIE-LCHlch(44.49, 93.39, 308.24°)
OKLaboklab(54.7% 0.0875 -0.2102)
OKLCHoklch(54.7% 0.228 292.6)
XYZxyz(24.5755, 14.1795, 76.2896)
Luminance0.1418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45E6 #B0E645
analogous
#455FE6 #7B45E6 #CB45E6
triadic
#7B45E6 #E67B45 #45E67B
tetradic
#7B45E6 #E6455F #B0E645 #45E6CB
square
#7B45E6 #E6455F #B0E645 #45E6CB
split-complementary
#7B45E6 #E6CB45 #5FE645
monochromatic
#42159C #591CD2 #7B45E6 #A17BED #C8B1F5

Accessibility & contrast

On white

5.47
#7B45E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7B45E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45E6
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45E6#FFFFFF#000000##FFFFFF
##7B45E61.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEB
Deuteranopia (green-blind)
#0066E3
Tritanopia (blue-blind)
#5A6E91
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7b45e6;
/* rgb */ color: rgb(123, 69, 230);
/* oklch */ color: oklch(54.7% 0.228 292.6);
Tailwind
colors: {
  custom: {
    50: '#aa7def',
    500: '#7b45e6',
    950: '#000000',
  },
}
SCSS
$custom: #7b45e6;
$custom-light: #aa7def;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45e6",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 260.124,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.54701,
    "c": 0.2277,
    "h": 292.6
  },
  "luminance": 0.1418
}

Semantic roles & 50–950 ramp

primary
#7B45E6
secondary
#CEE3A4
accent
#F335B3
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7B45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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