#7B45CC#7B45CC

#7B45CC is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.198 H 297.5°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7B45CC
RGBrgb(123, 69, 204)
HSLhsl(264, 57%, 54%)
HSVhsv(264, 66%, 80%)
CMYKcmyk(39.7%, 66.2%, 0%, 20%)
CIE-LABlab(42.50, 51.04, -61.70)
CIE-LCHlch(42.50, 80.07, 309.59°)
OKLaboklab(52.66% 0.0916 -0.176)
OKLCHoklch(52.66% 0.198 297.5)
XYZxyz(21.1928, 12.8265, 58.4742)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45CC #96CC45
analogous
#4552CC #7B45CC #BE45CC
triadic
#7B45CC #CC7B45 #45CC7B
tetradic
#7B45CC #CC4552 #96CC45 #45CCBE
square
#7B45CC #CC4552 #96CC45 #45CCBE
split-complementary
#7B45CC #CCBE45 #52CC45
monochromatic
#432076 #5E2EA6 #7B45CC #9D75D9 #BFA5E6

Accessibility & contrast

On white

5.89
#7B45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7B45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45CC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45CC#FFFFFF#000000##FFFFFF
##7B45CC1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#676583
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b45cc;
/* rgb */ color: rgb(123, 69, 204);
/* oklch */ color: oklch(52.7% 0.198 297.5);
Tailwind
colors: {
  custom: {
    50: '#a77cdc',
    500: '#7b45cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b45cc;
$custom-light: #a77cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45cc",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 264,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52659,
    "c": 0.19841,
    "h": 297.5
  },
  "luminance": 0.12827
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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