#6834B2#6834B2

#6834B2 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.188 H 297.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#6834B2
RGBrgb(104, 52, 178)
HSLhsl(265, 55%, 45%)
HSVhsv(265, 71%, 70%)
CMYKcmyk(41.6%, 70.8%, 0%, 30.2%)
CIE-LABlab(35.23, 49.21, -58.39)
CIE-LCHlch(35.23, 76.36, 310.12°)
OKLaboklab(46.34% 0.0864 -0.1668)
OKLCHoklch(46.34% 0.188 297.4)
XYZxyz(14.9707, 8.6131, 42.9846)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834B2 #7EB234
analogous
#343FB2 #6834B2 #A734B2
triadic
#6834B2 #B26834 #34B268
tetradic
#6834B2 #B2343F #7EB234 #34B2A7
square
#6834B2 #B2343F #7EB234 #34B2A7
split-complementary
#6834B2 #B2A734 #3FB234
monochromatic
#311853 #4C2683 #6834B2 #8756CE #A985DB

Accessibility & contrast

On white

7.71
#6834B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6834B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6834B2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6834B2#FFFFFF#000000##FFFFFF
##6834B21.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#55536F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6834b2;
/* rgb */ color: rgb(104, 52, 178);
/* oklch */ color: oklch(46.3% 0.188 297.4);
Tailwind
colors: {
  custom: {
    50: '#9970ca',
    500: '#6834b2',
    950: '#000000',
  },
}
SCSS
$custom: #6834b2;
$custom-light: #9970ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6834b2",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 264.762,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46343,
    "c": 0.18787,
    "h": 297.4
  },
  "luminance": 0.08613
}

Semantic roles & 50–950 ramp

primary
#6834B2
secondary
#A7C57D
accent
#DE4AA1
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6834B2

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

Preview Lab → · Contrast checker → · Palette generator →

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