#7845AF#7845AF

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

Color values

HEX#7845AF
RGBrgb(120, 69, 175)
HSLhsl(269, 43%, 48%)
HSVhsv(269, 61%, 69%)
CMYKcmyk(31.4%, 60.6%, 0%, 31.4%)
CIE-LABlab(40.15, 43.00, -48.55)
CIE-LCHlch(40.15, 64.85, 311.53°)
OKLaboklab(50.25% 0.0897 -0.1374)
OKLCHoklch(50.25% 0.164 303.1)
XYZxyz(17.6100, 11.3445, 41.8111)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845AF #7CAF45
analogous
#4547AF #7845AF #AD45AF
triadic
#7845AF #AF7845 #45AF78
tetradic
#7845AF #AF4547 #7CAF45 #45AFAD
square
#7845AF #AF4547 #7CAF45 #45AFAD
split-complementary
#7845AF #AFAD45 #47AF45
monochromatic
#3C2257 #5A3483 #7845AF #976CC5 #B698D6

Accessibility & contrast

On white

6.42
#7845AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7845AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845AF
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845AF#FFFFFF#000000##FFFFFF
##7845AF1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5EB2
Deuteranopia (green-blind)
#295EAD
Tritanopia (blue-blind)
#6E5B73
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7845af;
/* rgb */ color: rgb(120, 69, 175);
/* oklch */ color: oklch(50.2% 0.164 303.1);
Tailwind
colors: {
  custom: {
    50: '#a37bc7',
    500: '#7845af',
    950: '#000000',
  },
}
SCSS
$custom: #7845af;
$custom-light: #a37bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7845af",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 268.868,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50249,
    "c": 0.16413,
    "h": 303.1
  },
  "luminance": 0.11344
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7845AF

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

Preview Lab → · Contrast checker → · Palette generator →

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