#7845BA#7845BA

#7845BA is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.0% C 0.177 H 300.2°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7845BA
RGBrgb(120, 69, 186)
HSLhsl(266, 46%, 50%)
HSVhsv(266, 63%, 73%)
CMYKcmyk(35.5%, 62.9%, 0%, 27.1%)
CIE-LABlab(40.89, 45.78, -53.85)
CIE-LCHlch(40.89, 70.68, 310.37°)
OKLaboklab(51.02% 0.0892 -0.153)
OKLCHoklch(51.02% 0.177 300.2)
XYZxyz(18.7346, 11.7943, 47.7344)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845BA #87BA45
analogous
#454DBA #7845BA #B245BA
triadic
#7845BA #BA7845 #45BA78
tetradic
#7845BA #BA454D #87BA45 #45BAB2
square
#7845BA #BA454D #87BA45 #45BAB2
split-complementary
#7845BA #BAB245 #4DBA45
monochromatic
#3E2461 #5B348D #7845BA #9872CB #B99EDB

Accessibility & contrast

On white

6.25
#7845BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7845BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845BA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845BA#FFFFFF#000000##FFFFFF
##7845BA1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#1660B7
Tritanopia (blue-blind)
#6A5E79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7845ba;
/* rgb */ color: rgb(120, 69, 186);
/* oklch */ color: oklch(51.0% 0.177 300.2);
Tailwind
colors: {
  custom: {
    50: '#a37bcf',
    500: '#7845ba',
    950: '#000000',
  },
}
SCSS
$custom: #7845ba;
$custom-light: #a37bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7845ba",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 266.154,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.51015,
    "c": 0.17713,
    "h": 300.2
  },
  "luminance": 0.11794
}

Semantic roles & 50–950 ramp

primary
#7845BA
secondary
#B1C893
accent
#D6529C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7845BA

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

Preview Lab → · Contrast checker → · Palette generator →

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