#7845AD#7845AD

#7845AD is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.1% C 0.162 H 303.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7845AD
RGBrgb(120, 69, 173)
HSLhsl(269, 43%, 47%)
HSVhsv(269, 60%, 68%)
CMYKcmyk(30.6%, 60.1%, 0%, 32.2%)
CIE-LABlab(40.03, 42.50, -47.57)
CIE-LCHlch(40.03, 63.79, 311.77°)
OKLaboklab(50.11% 0.0898 -0.1346)
OKLCHoklch(50.11% 0.162 303.7)
XYZxyz(17.4150, 11.2665, 40.7842)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845AD #7AAD45
analogous
#4546AD #7845AD #AC45AD
triadic
#7845AD #AD7845 #45AD78
tetradic
#7845AD #AD4546 #7AAD45 #45ADAC
square
#7845AD #AD4546 #7AAD45 #45ADAC
split-complementary
#7845AD #ADAC45 #46AD45
monochromatic
#3B2255 #5A3481 #7845AD #976BC4 #B697D5

Accessibility & contrast

On white

6.46
#7845AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7845AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845AD
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845AD#FFFFFF#000000##FFFFFF
##7845AD1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115DB0
Deuteranopia (green-blind)
#2C5EAB
Tritanopia (blue-blind)
#6E5A72
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7845ad;
/* rgb */ color: rgb(120, 69, 173);
/* oklch */ color: oklch(50.1% 0.162 303.7);
Tailwind
colors: {
  custom: {
    50: '#a27bc6',
    500: '#7845ad',
    950: '#000000',
  },
}
SCSS
$custom: #7845ad;
$custom-light: #a27bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7845ad",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 173
  },
  "hsl": {
    "h": 269.423,
    "s": 42.975,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50113,
    "c": 0.16176,
    "h": 303.7
  },
  "luminance": 0.11266
}

Semantic roles & 50–950 ramp

primary
#7845AD
secondary
#A7C18C
accent
#D35595
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7845AD

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

Preview Lab → · Contrast checker → · Palette generator →

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