#6839AF#6839AF

#6839AF is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.8% C 0.178 H 297.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#6839AF
RGBrgb(104, 57, 175)
HSLhsl(264, 51%, 45%)
HSVhsv(264, 67%, 69%)
CMYKcmyk(40.6%, 67.4%, 0%, 31.4%)
CIE-LABlab(35.92, 45.87, -55.49)
CIE-LCHlch(35.92, 72.00, 309.58°)
OKLaboklab(46.76% 0.0817 -0.1583)
OKLCHoklch(46.76% 0.178 297.3)
XYZxyz(14.9079, 8.9642, 41.4940)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839AF #80AF39
analogous
#3945AF #6839AF #A339AF
triadic
#6839AF #AF6839 #39AF68
tetradic
#6839AF #AF3945 #80AF39 #39AFA3
square
#6839AF #AF3945 #80AF39 #39AFA3
split-complementary
#6839AF #AFA339 #45AF39
monochromatic
#311B53 #4D2A81 #6839AF #875BCA #A98AD9

Accessibility & contrast

On white

7.52
#6839AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6839AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839AF
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839AF#FFFFFF#000000##FFFFFF
##6839AF1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#56556F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6839af;
/* rgb */ color: rgb(104, 57, 175);
/* oklch */ color: oklch(46.8% 0.178 297.3);
Tailwind
colors: {
  custom: {
    50: '#9973c8',
    500: '#6839af',
    950: '#000000',
  },
}
SCSS
$custom: #6839af;
$custom-light: #9973c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6839af",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 175
  },
  "hsl": {
    "h": 263.898,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46761,
    "c": 0.17817,
    "h": 297.3
  },
  "luminance": 0.08964
}

Semantic roles & 50–950 ramp

primary
#6839AF
secondary
#A9C381
accent
#DA4DA2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6839AF

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

Preview Lab → · Contrast checker → · Palette generator →

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