#7B45CE#7B45CE

#7B45CE is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.8% C 0.201 H 297.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7B45CE
RGBrgb(123, 69, 206)
HSLhsl(264, 58%, 54%)
HSVhsv(264, 67%, 81%)
CMYKcmyk(40.3%, 66.5%, 0%, 19.2%)
CIE-LABlab(42.65, 51.55, -62.62)
CIE-LCHlch(42.65, 81.11, 309.46°)
OKLaboklab(52.81% 0.0914 -0.1787)
OKLCHoklch(52.81% 0.201 297.1)
XYZxyz(21.4342, 12.9230, 59.7457)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45CE #98CE45
analogous
#4554CE #7B45CE #C045CE
triadic
#7B45CE #CE7B45 #45CE7B
tetradic
#7B45CE #CE4554 #98CE45 #45CEC0
square
#7B45CE #CE4554 #98CE45 #45CEC0
split-complementary
#7B45CE #CEC045 #54CE45
monochromatic
#432079 #5E2DA9 #7B45CE #9D75DB #C0A6E8

Accessibility & contrast

On white

5.86
#7B45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7B45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45CE
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45CE#FFFFFF#000000##FFFFFF
##7B45CE1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0063CB
Tritanopia (blue-blind)
#666584
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b45ce;
/* rgb */ color: rgb(123, 69, 206);
/* oklch */ color: oklch(52.8% 0.201 297.1);
Tailwind
colors: {
  custom: {
    50: '#a77cde',
    500: '#7b45ce',
    950: '#000000',
  },
}
SCSS
$custom: #7b45ce;
$custom-light: #a77cde;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45ce",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 263.65,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5281,
    "c": 0.2007,
    "h": 297.1
  },
  "luminance": 0.12923
}

Semantic roles & 50–950 ramp

primary
#7B45CE
secondary
#BED59A
accent
#E246A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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