#7843B5#7843B5

#7843B5 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.174 H 301.9°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7843B5
RGBrgb(120, 67, 181)
HSLhsl(268, 46%, 49%)
HSVhsv(268, 63%, 71%)
CMYKcmyk(33.7%, 63%, 0%, 29%)
CIE-LABlab(40.15, 45.58, -52.10)
CIE-LCHlch(40.15, 69.22, 311.18°)
OKLaboklab(50.38% 0.0919 -0.1478)
OKLCHoklch(50.38% 0.174 301.9)
XYZxyz(18.0914, 11.3435, 44.9435)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7843B5 #80B543
analogous
#4347B5 #7843B5 #B143B5
triadic
#7843B5 #B57843 #43B578
tetradic
#7843B5 #B54347 #80B543 #43B5B1
square
#7843B5 #B54347 #80B543 #43B5B1
split-complementary
#7843B5 #B5B143 #47B543
monochromatic
#3D225C #5A3288 #7843B5 #976CC9 #B799D9

Accessibility & contrast

On white

6.42
#7843B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7843B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7843B5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7843B5#FFFFFF#000000##FFFFFF
##7843B51.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)
#005EB9
Deuteranopia (green-blind)
#1D5EB2
Tritanopia (blue-blind)
#6C5B76
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7843b5;
/* rgb */ color: rgb(120, 67, 181);
/* oklch */ color: oklch(50.4% 0.174 301.9);
Tailwind
colors: {
  custom: {
    50: '#a37acc',
    500: '#7843b5',
    950: '#000000',
  },
}
SCSS
$custom: #7843b5;
$custom-light: #a37acc;
$custom-dark: #000000;
JSON
{
  "hex": "#7843b5",
  "rgb": {
    "r": 120,
    "g": 67,
    "b": 181
  },
  "hsl": {
    "h": 267.895,
    "s": 45.968,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50375,
    "c": 0.17408,
    "h": 301.9
  },
  "luminance": 0.11344
}

Semantic roles & 50–950 ramp

primary
#7843B5
secondary
#ACC58F
accent
#D65299
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7843B5

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

Preview Lab → · Contrast checker → · Palette generator →

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