#7B45D1#7B45D1

#7B45D1 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.0% C 0.204 H 296.5°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7B45D1
RGBrgb(123, 69, 209)
HSLhsl(263, 60%, 55%)
HSVhsv(263, 67%, 82%)
CMYKcmyk(41.1%, 67%, 0%, 18%)
CIE-LABlab(42.87, 52.33, -63.99)
CIE-LCHlch(42.87, 82.66, 309.27°)
OKLaboklab(53.04% 0.091 -0.1827)
OKLCHoklch(53.04% 0.204 296.5)
XYZxyz(21.8021, 13.0702, 61.6834)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45D1 #9BD145
analogous
#4555D1 #7B45D1 #C145D1
triadic
#7B45D1 #D17B45 #45D17B
tetradic
#7B45D1 #D14555 #9BD145 #45D1C1
square
#7B45D1 #D14555 #9BD145 #45D1C1
split-complementary
#7B45D1 #D1C145 #55D145
monochromatic
#431F7D #5D2BAE #7B45D1 #9E76DD #C1A7E9

Accessibility & contrast

On white

5.81
#7B45D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7B45D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45D1
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45D1#FFFFFF#000000##FFFFFF
##7B45D11.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0063CE
Tritanopia (blue-blind)
#656685
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b45d1;
/* rgb */ color: rgb(123, 69, 209);
/* oklch */ color: oklch(53.0% 0.204 296.5);
Tailwind
colors: {
  custom: {
    50: '#a87ce0',
    500: '#7b45d1',
    950: '#000000',
  },
}
SCSS
$custom: #7b45d1;
$custom-light: #a87ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45d1",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 263.143,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53039,
    "c": 0.2041,
    "h": 296.5
  },
  "luminance": 0.13071
}

Semantic roles & 50–950 ramp

primary
#7B45D1
secondary
#C0D79B
accent
#E344A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B45D1

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

Preview Lab → · Contrast checker → · Palette generator →

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