#7843BB#7843BB

#7843BB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.181 H 300.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7843BB
RGBrgb(120, 67, 187)
HSLhsl(267, 47%, 50%)
HSVhsv(267, 64%, 73%)
CMYKcmyk(35.8%, 64.2%, 0%, 26.7%)
CIE-LABlab(40.57, 47.10, -54.96)
CIE-LCHlch(40.57, 72.38, 310.59°)
OKLaboklab(50.8% 0.0915 -0.1563)
OKLCHoklch(50.8% 0.181 300.3)
XYZxyz(18.7203, 11.5951, 48.2559)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7843BB #86BB43
analogous
#434ABB #7843BB #B443BB
triadic
#7843BB #BB7843 #43BB78
tetradic
#7843BB #BB434A #86BB43 #43BBB4
square
#7843BB #BB434A #86BB43 #43BBB4
split-complementary
#7843BB #BBB443 #4ABB43
monochromatic
#3E2361 #5B338E #7843BB #9870CC #B99DDC

Accessibility & contrast

On white

6.33
#7843BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7843BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7843BB
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7843BB#FFFFFF#000000##FFFFFF
##7843BB1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#0D5FB8
Tritanopia (blue-blind)
#695E79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7843bb;
/* rgb */ color: rgb(120, 67, 187);
/* oklch */ color: oklch(50.8% 0.181 300.3);
Tailwind
colors: {
  custom: {
    50: '#a47ad0',
    500: '#7843bb',
    950: '#000000',
  },
}
SCSS
$custom: #7843bb;
$custom-light: #a47ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7843bb",
  "rgb": {
    "r": 120,
    "g": 67,
    "b": 187
  },
  "hsl": {
    "h": 266.5,
    "s": 47.244,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50804,
    "c": 0.18106,
    "h": 300.3
  },
  "luminance": 0.11595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7843BB

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

Preview Lab → · Contrast checker → · Palette generator →

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