#7B45AF#7B45AF

#7B45AF is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.6% C 0.165 H 304.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7B45AF
RGBrgb(123, 69, 175)
HSLhsl(271, 43%, 48%)
HSVhsv(271, 61%, 69%)
CMYKcmyk(29.7%, 60.6%, 0%, 31.4%)
CIE-LABlab(40.51, 43.72, -47.96)
CIE-LCHlch(40.51, 64.89, 312.35°)
OKLaboklab(50.59% 0.0937 -0.1356)
OKLCHoklch(50.59% 0.165 304.7)
XYZxyz(18.0327, 11.5624, 41.8309)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B45AF #79AF45
analogous
#4645AF #7B45AF #AF45AE
triadic
#7B45AF #AF7B45 #45AF7B
tetradic
#7B45AF #AF4645 #79AF45 #45AEAF
square
#7B45AF #AF4645 #79AF45 #45AEAF
split-complementary
#7B45AF #AEAF45 #45AF46
monochromatic
#3D2257 #5C3483 #7B45AF #996CC5 #B898D6

Accessibility & contrast

On white

6.34
#7B45AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7B45AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B45AF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B45AF#FFFFFF#000000##FFFFFF
##7B45AF1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105EB2
Deuteranopia (green-blind)
#2D60AD
Tritanopia (blue-blind)
#725A73
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7b45af;
/* rgb */ color: rgb(123, 69, 175);
/* oklch */ color: oklch(50.6% 0.165 304.7);
Tailwind
colors: {
  custom: {
    50: '#a57bc7',
    500: '#7b45af',
    950: '#000000',
  },
}
SCSS
$custom: #7b45af;
$custom-light: #a57bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b45af",
  "rgb": {
    "r": 123,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 270.566,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50589,
    "c": 0.16486,
    "h": 304.7
  },
  "luminance": 0.11562
}

Semantic roles & 50–950 ramp

primary
#7B45AF
secondary
#A7C28D
accent
#D35593
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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