#7843BC#7843BC

#7843BC is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.182 H 300.1°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7843BC
RGBrgb(120, 67, 188)
HSLhsl(266, 47%, 50%)
HSVhsv(266, 64%, 74%)
CMYKcmyk(36.2%, 64.4%, 0%, 26.3%)
CIE-LABlab(40.64, 47.35, -55.43)
CIE-LCHlch(40.64, 72.90, 310.50°)
OKLaboklab(50.88% 0.0914 -0.1577)
OKLCHoklch(50.88% 0.182 300.1)
XYZxyz(18.8278, 11.6381, 48.8216)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7843BC #87BC43
analogous
#434ABC #7843BC #B543BC
triadic
#7843BC #BC7843 #43BC78
tetradic
#7843BC #BC434A #87BC43 #43BCB5
square
#7843BC #BC434A #87BC43 #43BCB5
split-complementary
#7843BC #BCB543 #4ABC43
monochromatic
#3E2362 #5B338F #7843BC #9870CC #B99DDC

Accessibility & contrast

On white

6.31
#7843BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7843BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7843BC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7843BC#FFFFFF#000000##FFFFFF
##7843BC1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#095FB9
Tritanopia (blue-blind)
#695E79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7843bc;
/* rgb */ color: rgb(120, 67, 188);
/* oklch */ color: oklch(50.9% 0.182 300.1);
Tailwind
colors: {
  custom: {
    50: '#a47ad1',
    500: '#7843bc',
    950: '#000000',
  },
}
SCSS
$custom: #7843bc;
$custom-light: #a47ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7843bc",
  "rgb": {
    "r": 120,
    "g": 67,
    "b": 188
  },
  "hsl": {
    "h": 266.281,
    "s": 47.451,
    "l": 50
  },
  "oklch": {
    "l": 0.50876,
    "c": 0.18223,
    "h": 300.1
  },
  "luminance": 0.11638
}

Semantic roles & 50–950 ramp

primary
#7843BC
secondary
#B1C992
accent
#D7519C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7843BC

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

Preview Lab → · Contrast checker → · Palette generator →

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