#7845AE#7845AE

#7845AE is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.2% C 0.163 H 303.4°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7845AE
RGBrgb(120, 69, 174)
HSLhsl(269, 43%, 48%)
HSVhsv(269, 60%, 68%)
CMYKcmyk(31%, 60.3%, 0%, 31.8%)
CIE-LABlab(40.09, 42.75, -48.06)
CIE-LCHlch(40.09, 64.32, 311.65°)
OKLaboklab(50.18% 0.0897 -0.136)
OKLCHoklch(50.18% 0.163 303.4)
XYZxyz(17.5121, 11.3053, 41.2958)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845AE #7BAE45
analogous
#4546AE #7845AE #AD45AE
triadic
#7845AE #AE7845 #45AE78
tetradic
#7845AE #AE4546 #7BAE45 #45AEAD
square
#7845AE #AE4546 #7BAE45 #45AEAD
split-complementary
#7845AE #AEAD45 #46AE45
monochromatic
#3C2256 #5A3482 #7845AE #976CC5 #B697D6

Accessibility & contrast

On white

6.44
#7845AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7845AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845AE
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845AE#FFFFFF#000000##FFFFFF
##7845AE1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5DB1
Deuteranopia (green-blind)
#2B5EAC
Tritanopia (blue-blind)
#6E5A73
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7845ae;
/* rgb */ color: rgb(120, 69, 174);
/* oklch */ color: oklch(50.2% 0.163 303.4);
Tailwind
colors: {
  custom: {
    50: '#a37bc7',
    500: '#7845ae',
    950: '#000000',
  },
}
SCSS
$custom: #7845ae;
$custom-light: #a37bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7845ae",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 269.143,
    "s": 43.21,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50181,
    "c": 0.16295,
    "h": 303.4
  },
  "luminance": 0.11305
}

Semantic roles & 50–950 ramp

primary
#7845AE
secondary
#A8C28D
accent
#D35596
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7845AE

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

Preview Lab → · Contrast checker → · Palette generator →

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