#7843BA#7843BA

#7843BA is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.7% C 0.180 H 300.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7843BA
RGBrgb(120, 67, 186)
HSLhsl(267, 47%, 50%)
HSVhsv(267, 64%, 73%)
CMYKcmyk(35.5%, 64%, 0%, 27.1%)
CIE-LABlab(40.50, 46.84, -54.48)
CIE-LCHlch(40.50, 71.85, 310.69°)
OKLaboklab(50.73% 0.0916 -0.1549)
OKLCHoklch(50.73% 0.18 300.6)
XYZxyz(18.6137, 11.5524, 47.6941)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7843BA #85BA43
analogous
#4349BA #7843BA #B443BA
triadic
#7843BA #BA7843 #43BA78
tetradic
#7843BA #BA4349 #85BA43 #43BAB4
square
#7843BA #BA4349 #85BA43 #43BAB4
split-complementary
#7843BA #BAB443 #49BA43
monochromatic
#3E2360 #5B338D #7843BA #986FCB #B89CDB

Accessibility & contrast

On white

6.34
#7843BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7843BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7843BA
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7843BA#FFFFFF#000000##FFFFFF
##7843BA1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#105FB7
Tritanopia (blue-blind)
#6A5D78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7843ba;
/* rgb */ color: rgb(120, 67, 186);
/* oklch */ color: oklch(50.7% 0.180 300.6);
Tailwind
colors: {
  custom: {
    50: '#a47acf',
    500: '#7843ba',
    950: '#000000',
  },
}
SCSS
$custom: #7843ba;
$custom-light: #a47acf;
$custom-dark: #000000;
JSON
{
  "hex": "#7843ba",
  "rgb": {
    "r": 120,
    "g": 67,
    "b": 186
  },
  "hsl": {
    "h": 266.723,
    "s": 47.036,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50731,
    "c": 0.17991,
    "h": 300.6
  },
  "luminance": 0.11553
}

Semantic roles & 50–950 ramp

primary
#7843BA
secondary
#AFC891
accent
#D7519B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7843BA

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

Preview Lab → · Contrast checker → · Palette generator →

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