#6834B8#6834B8

#6834B8 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.195 H 296.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#6834B8
RGBrgb(104, 52, 184)
HSLhsl(264, 56%, 46%)
HSVhsv(264, 72%, 72%)
CMYKcmyk(43.5%, 71.7%, 0%, 27.8%)
CIE-LABlab(35.71, 50.78, -61.16)
CIE-LCHlch(35.71, 79.49, 309.70°)
OKLaboklab(46.84% 0.0852 -0.175)
OKLCHoklch(46.84% 0.195 296)
XYZxyz(15.5863, 8.8594, 46.2269)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834B8 #84B834
analogous
#3442B8 #6834B8 #AA34B8
triadic
#6834B8 #B86834 #34B868
tetradic
#6834B8 #B83442 #84B834 #34B8AA
square
#6834B8 #B83442 #84B834 #34B8AA
split-complementary
#6834B8 #B8AA34 #42B834
monochromatic
#321959 #4D2788 #6834B8 #8859D0 #AA89DE

Accessibility & contrast

On white

7.58
#6834B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6834B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6834B8
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6834B8#FFFFFF#000000##FFFFFF
##6834B81.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#535573
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6834b8;
/* rgb */ color: rgb(104, 52, 184);
/* oklch */ color: oklch(46.8% 0.195 296.0);
Tailwind
colors: {
  custom: {
    50: '#9a70ce',
    500: '#6834b8',
    950: '#000000',
  },
}
SCSS
$custom: #6834b8;
$custom-light: #9a70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6834b8",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 263.636,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46837,
    "c": 0.19462,
    "h": 296
  },
  "luminance": 0.0886
}

Semantic roles & 50–950 ramp

primary
#6834B8
secondary
#ABC880
accent
#DF49A4
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6834B8

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

Preview Lab → · Contrast checker → · Palette generator →

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