#6834CA#6834CA

#6834CA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.215 H 292.2°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#6834CA
RGBrgb(104, 52, 202)
HSLhsl(261, 59%, 50%)
HSVhsv(261, 74%, 79%)
CMYKcmyk(48.5%, 74.3%, 0%, 20.8%)
CIE-LABlab(37.23, 55.52, -69.23)
CIE-LCHlch(37.23, 88.74, 308.73°)
OKLaboklab(48.38% 0.0812 -0.1987)
OKLCHoklch(48.38% 0.215 292.2)
XYZxyz(17.5946, 9.6627, 56.8037)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834CA #96CA34
analogous
#344BCA #6834CA #B334CA
triadic
#6834CA #CA6834 #34CA68
tetradic
#6834CA #CA344B #96CA34 #34CAB3
square
#6834CA #CA344B #96CA34 #34CAB3
split-complementary
#6834CA #CAB334 #4BCA34
monochromatic
#361B69 #4F2799 #6834CA #8C64D7 #B095E4

Accessibility & contrast

On white

7.16
#6834CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6834CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6834CA
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6834CA#FFFFFF#000000##FFFFFF
##6834CA1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0055C7
Tritanopia (blue-blind)
#485D7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6834ca;
/* rgb */ color: rgb(104, 52, 202);
/* oklch */ color: oklch(48.4% 0.215 292.2);
Tailwind
colors: {
  custom: {
    50: '#9c71db',
    500: '#6834ca',
    950: '#000000',
  },
}
SCSS
$custom: #6834ca;
$custom-light: #9c71db;
$custom-dark: #000000;
JSON
{
  "hex": "#6834ca",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 260.8,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48378,
    "c": 0.2146,
    "h": 292.2
  },
  "luminance": 0.09663
}

Semantic roles & 50–950 ramp

primary
#6834CA
secondary
#B7CF8B
accent
#E246AC
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6834CA

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

Preview Lab → · Contrast checker → · Palette generator →

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