#7840BE#7840BE

#7840BE is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.6% C 0.189 H 300.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7840BE
RGBrgb(120, 64, 190)
HSLhsl(267, 50%, 50%)
HSVhsv(267, 66%, 75%)
CMYKcmyk(36.8%, 66.3%, 0%, 25.5%)
CIE-LABlab(40.21, 49.41, -57.29)
CIE-LCHlch(40.21, 75.66, 310.78°)
OKLaboklab(50.61% 0.0945 -0.1631)
OKLCHoklch(50.61% 0.189 300.1)
XYZxyz(18.8711, 11.3774, 49.9071)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7840BE #86BE40
analogous
#4047BE #7840BE #B740BE
triadic
#7840BE #BE7840 #40BE78
tetradic
#7840BE #BE4047 #86BE40 #40BEB7
square
#7840BE #BE4047 #86BE40 #40BEB7
split-complementary
#7840BE #BEB740 #47BE40
monochromatic
#3E2162 #5B3190 #7840BE #986DCE #B99BDD

Accessibility & contrast

On white

6.41
#7840BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7840BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7840BE
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7840BE#FFFFFF#000000##FFFFFF
##7840BE1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#685D79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7840be;
/* rgb */ color: rgb(120, 64, 190);
/* oklch */ color: oklch(50.6% 0.189 300.1);
Tailwind
colors: {
  custom: {
    50: '#a478d2',
    500: '#7840be',
    950: '#000000',
  },
}
SCSS
$custom: #7840be;
$custom-light: #a478d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7840be",
  "rgb": {
    "r": 120,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 266.667,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50614,
    "c": 0.18853,
    "h": 300.1
  },
  "luminance": 0.11378
}

Semantic roles & 50–950 ramp

primary
#7840BE
secondary
#B0C990
accent
#D94F9C
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7840BE

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

Preview Lab → · Contrast checker → · Palette generator →

#7840BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva