#7B45CA#7B45CA

#7B45CA is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.196 H 297.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7B45CA
RGBrgb(123, 69, 202)
HSLhsl(264, 56%, 53%)
HSVhsv(264, 66%, 79%)
CMYKcmyk(39.1%, 65.8%, 0%, 20.8%)
CIE-LABlab(42.36, 50.52, -60.78)
CIE-LCHlch(42.36, 79.04, 309.73°)
OKLaboklab(52.51% 0.0918 -0.1733)
OKLCHoklch(52.51% 0.196 297.9)
XYZxyz(20.9545, 12.7311, 57.2190)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45CA #94CA45
analogous
#4551CA #7B45CA #BE45CA
triadic
#7B45CA #CA7B45 #45CA7B
tetradic
#7B45CA #CA4551 #94CA45 #45CABE
square
#7B45CA #CA4551 #94CA45 #45CABE
split-complementary
#7B45CA #CABE45 #51CA45
monochromatic
#432174 #5E2FA3 #7B45CA #9D75D8 #BFA4E5

Accessibility & contrast

On white

5.92
#7B45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7B45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45CA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45CA#FFFFFF#000000##FFFFFF
##7B45CA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#686482
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b45ca;
/* rgb */ color: rgb(123, 69, 202);
/* oklch */ color: oklch(52.5% 0.196 297.9);
Tailwind
colors: {
  custom: {
    50: '#a77cdb',
    500: '#7b45ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b45ca;
$custom-light: #a77cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45ca",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 264.361,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52509,
    "c": 0.19612,
    "h": 297.9
  },
  "luminance": 0.12731
}

Semantic roles & 50–950 ramp

primary
#7B45CA
secondary
#BBD299
accent
#DF49A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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