#7845AB#7845AB

#7845AB is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.0% C 0.159 H 304.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#7845AB
RGBrgb(120, 69, 171)
HSLhsl(270, 43%, 47%)
HSVhsv(270, 60%, 67%)
CMYKcmyk(29.8%, 59.6%, 0%, 32.9%)
CIE-LABlab(39.90, 42.00, -46.59)
CIE-LCHlch(39.90, 62.73, 312.03°)
OKLaboklab(49.98% 0.0898 -0.1317)
OKLCHoklch(49.98% 0.159 304.3)
XYZxyz(17.2229, 11.1897, 39.7727)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845AB #78AB45
analogous
#4545AB #7845AB #AB45AB
triadic
#7845AB #AB7845 #45AB78
tetradic
#7845AB #AB4545 #78AB45 #45ABAB
square
#7845AB #AB4545 #78AB45 #45ABAB
split-complementary
#7845AB #ABAB45 #45AB45
monochromatic
#3B2254 #59337F #7845AB #976AC3 #B596D5

Accessibility & contrast

On white

6.49
#7845AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7845AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845AB
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845AB#FFFFFF#000000##FFFFFF
##7845AB1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165DAE
Deuteranopia (green-blind)
#2E5EA9
Tritanopia (blue-blind)
#6F5971
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7845ab;
/* rgb */ color: rgb(120, 69, 171);
/* oklch */ color: oklch(50.0% 0.159 304.3);
Tailwind
colors: {
  custom: {
    50: '#a27bc5',
    500: '#7845ab',
    950: '#000000',
  },
}
SCSS
$custom: #7845ab;
$custom-light: #a27bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7845ab",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 270,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49979,
    "c": 0.15939,
    "h": 304.3
  },
  "luminance": 0.1119
}

Semantic roles & 50–950 ramp

primary
#7845AB
secondary
#A6C08B
accent
#D25694
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7845AB

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

Preview Lab → · Contrast checker → · Palette generator →

#7845AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva