#7843BF#7843BF

#7843BF is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.186 H 299.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7843BF
RGBrgb(120, 67, 191)
HSLhsl(266, 49%, 51%)
HSVhsv(266, 65%, 75%)
CMYKcmyk(37.2%, 64.9%, 0%, 25.1%)
CIE-LABlab(40.85, 48.12, -56.85)
CIE-LCHlch(40.85, 74.48, 310.25°)
OKLaboklab(51.1% 0.0911 -0.1618)
OKLCHoklch(51.1% 0.186 299.4)
XYZxyz(19.1545, 11.7688, 50.5426)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7843BF #8ABF43
analogous
#434CBF #7843BF #B643BF
triadic
#7843BF #BF7843 #43BF78
tetradic
#7843BF #BF434C #8ABF43 #43BFB6
square
#7843BF #BF434C #8ABF43 #43BFB6
split-complementary
#7843BF #BFB643 #4CBF43
monochromatic
#3F2265 #5B3293 #7843BF #9971CF #BA9EDE

Accessibility & contrast

On white

6.26
#7843BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7843BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7843BF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7843BF#FFFFFF#000000##FFFFFF
##7843BF1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#685F7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7843bf;
/* rgb */ color: rgb(120, 67, 191);
/* oklch */ color: oklch(51.1% 0.186 299.4);
Tailwind
colors: {
  custom: {
    50: '#a47ad3',
    500: '#7843bf',
    950: '#000000',
  },
}
SCSS
$custom: #7843bf;
$custom-light: #a47ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7843bf",
  "rgb": {
    "r": 120,
    "g": 67,
    "b": 191
  },
  "hsl": {
    "h": 265.645,
    "s": 49.206,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51096,
    "c": 0.18569,
    "h": 299.4
  },
  "luminance": 0.11769
}

Semantic roles & 50–950 ramp

primary
#7843BF
secondary
#B3CA93
accent
#D94F9E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7843BF

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

Preview Lab → · Contrast checker → · Palette generator →

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