#6834C2#6834C2

#6834C2 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.206 H 293.8°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#6834C2
RGBrgb(104, 52, 194)
HSLhsl(262, 58%, 48%)
HSVhsv(262, 73%, 76%)
CMYKcmyk(46.4%, 73.2%, 0%, 23.9%)
CIE-LABlab(36.54, 53.41, -65.68)
CIE-LCHlch(36.54, 84.66, 309.12°)
OKLaboklab(47.68% 0.0831 -0.1883)
OKLCHoklch(47.68% 0.206 293.8)
XYZxyz(16.6718, 9.2936, 51.9439)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834C2 #8EC234
analogous
#3447C2 #6834C2 #AF34C2
triadic
#6834C2 #C26834 #34C268
tetradic
#6834C2 #C23447 #8EC234 #34C2AF
square
#6834C2 #C23447 #8EC234 #34C2AF
split-complementary
#6834C2 #C2AF34 #47C234
monochromatic
#341A61 #4E2792 #6834C2 #8A5FD4 #AD8FE1

Accessibility & contrast

On white

7.35
#6834C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6834C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6834C2
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6834C2#FFFFFF#000000##FFFFFF
##6834C21.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#4D5978
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6834c2;
/* rgb */ color: rgb(104, 52, 194);
/* oklch */ color: oklch(47.7% 0.206 293.8);
Tailwind
colors: {
  custom: {
    50: '#9b70d6',
    500: '#6834c2',
    950: '#000000',
  },
}
SCSS
$custom: #6834c2;
$custom-light: #9b70d6;
$custom-dark: #000000;
JSON
{
  "hex": "#6834c2",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 261.972,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47683,
    "c": 0.20576,
    "h": 293.8
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#6834C2
secondary
#B2CC86
accent
#E147A9
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6834C2

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

Preview Lab → · Contrast checker → · Palette generator →

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