#7B45AA#7B45AA

#7B45AA is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.3% C 0.159 H 306.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7B45AA
RGBrgb(123, 69, 170)
HSLhsl(272, 42%, 47%)
HSVhsv(272, 59%, 67%)
CMYKcmyk(27.6%, 59.4%, 0%, 33.3%)
CIE-LABlab(40.20, 42.50, -45.50)
CIE-LCHlch(40.20, 62.26, 313.05°)
OKLaboklab(50.26% 0.0938 -0.1284)
OKLCHoklch(50.26% 0.159 306.1)
XYZxyz(17.5507, 11.3696, 39.2924)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45AA #74AA45
analogous
#4945AA #7B45AA #AA45A7
triadic
#7B45AA #AA7B45 #45AA7B
tetradic
#7B45AA #AA4945 #74AA45 #45A7AA
square
#7B45AA #AA4945 #74AA45 #45A7AA
split-complementary
#7B45AA #A7AA45 #45AA49
monochromatic
#3C2253 #5C337E #7B45AA #996AC2 #B795D4

Accessibility & contrast

On white

6.41
#7B45AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7B45AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45AA
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45AA#FFFFFF#000000##FFFFFF
##7B45AA1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5DAD
Deuteranopia (green-blind)
#325FA8
Tritanopia (blue-blind)
#735971
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7b45aa;
/* rgb */ color: rgb(123, 69, 170);
/* oklch */ color: oklch(50.3% 0.159 306.1);
Tailwind
colors: {
  custom: {
    50: '#a47bc4',
    500: '#7b45aa',
    950: '#000000',
  },
}
SCSS
$custom: #7b45aa;
$custom-light: #a47bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45aa",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 272.079,
    "s": 42.259,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50257,
    "c": 0.15901,
    "h": 306.1
  },
  "luminance": 0.11369
}

Semantic roles & 50–950 ramp

primary
#7B45AA
secondary
#A4C08B
accent
#D25690
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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