#6834B5#6834B5

#6834B5 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.191 H 296.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#6834B5
RGBrgb(104, 52, 181)
HSLhsl(264, 55%, 46%)
HSVhsv(264, 71%, 71%)
CMYKcmyk(42.5%, 71.3%, 0%, 29%)
CIE-LABlab(35.47, 50.00, -59.78)
CIE-LCHlch(35.47, 77.93, 309.91°)
OKLaboklab(46.59% 0.0858 -0.1709)
OKLCHoklch(46.59% 0.191 296.7)
XYZxyz(15.2752, 8.7349, 44.5883)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834B5 #81B534
analogous
#3440B5 #6834B5 #A834B5
triadic
#6834B5 #B56834 #34B568
tetradic
#6834B5 #B53440 #81B534 #34B5A8
square
#6834B5 #B53440 #81B534 #34B5A8
split-complementary
#6834B5 #B5A834 #40B534
monochromatic
#311956 #4D2685 #6834B5 #8857CF #A987DC

Accessibility & contrast

On white

7.64
#6834B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6834B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6834B5
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6834B5#FFFFFF#000000##FFFFFF
##6834B51.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#545471
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6834b5;
/* rgb */ color: rgb(104, 52, 181);
/* oklch */ color: oklch(46.6% 0.191 296.7);
Tailwind
colors: {
  custom: {
    50: '#9a70cc',
    500: '#6834b5',
    950: '#000000',
  },
}
SCSS
$custom: #6834b5;
$custom-light: #9a70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6834b5",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 264.186,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46589,
    "c": 0.19126,
    "h": 296.7
  },
  "luminance": 0.08735
}

Semantic roles & 50–950 ramp

primary
#6834B5
secondary
#A9C67F
accent
#DF49A2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6834B5

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

Preview Lab → · Contrast checker → · Palette generator →

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