#6834AF#6834AF

#6834AF is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.184 H 298.1°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#6834AF
RGBrgb(104, 52, 175)
HSLhsl(265, 54%, 45%)
HSVhsv(265, 70%, 69%)
CMYKcmyk(40.6%, 70.3%, 0%, 31.4%)
CIE-LABlab(34.99, 48.43, -56.99)
CIE-LCHlch(34.99, 74.79, 310.36°)
OKLaboklab(46.1% 0.0869 -0.1627)
OKLCHoklch(46.1% 0.184 298.1)
XYZxyz(14.6728, 8.4940, 41.4156)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834AF #7BAF34
analogous
#343DAF #6834AF #A634AF
triadic
#6834AF #AF6834 #34AF68
tetradic
#6834AF #AF343D #7BAF34 #34AFA6
square
#6834AF #AF343D #7BAF34 #34AFA6
split-complementary
#6834AF #AFA634 #3DAF34
monochromatic
#301851 #4C2680 #6834AF #8754CC #A883DA

Accessibility & contrast

On white

7.78
#6834AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6834AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6834AF
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6834AF#FFFFFF#000000##FFFFFF
##6834AF1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#57526E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6834af;
/* rgb */ color: rgb(104, 52, 175);
/* oklch */ color: oklch(46.1% 0.184 298.1);
Tailwind
colors: {
  custom: {
    50: '#9970c8',
    500: '#6834af',
    950: '#000000',
  },
}
SCSS
$custom: #6834af;
$custom-light: #9970c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6834af",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 265.366,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.461,
    "c": 0.18448,
    "h": 298.1
  },
  "luminance": 0.08494
}

Semantic roles & 50–950 ramp

primary
#6834AF
secondary
#A5C47B
accent
#DE4A9F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6834AF

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

Preview Lab → · Contrast checker → · Palette generator →

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