#6839E9#6839E9

#6839E9 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.7% C 0.244 H 286.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6839E9
RGBrgb(104, 57, 233)
HSLhsl(256, 80%, 57%)
HSVhsv(256, 76%, 91%)
CMYKcmyk(55.4%, 75.5%, 0%, 8.6%)
CIE-LABlab(40.82, 61.51, -81.14)
CIE-LCHlch(40.82, 101.82, 307.17°)
OKLaboklab(51.74% 0.0694 -0.2336)
OKLCHoklch(51.74% 0.244 286.6)
XYZxyz(21.8756, 11.7513, 78.1905)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839E9 #BAE939
analogous
#3962E9 #6839E9 #C039E9
triadic
#6839E9 #E96839 #39E968
tetradic
#6839E9 #E93962 #BAE939 #39E9C0
square
#6839E9 #E93962 #BAE939 #39E9C0
split-complementary
#6839E9 #E9C039 #62E939
monochromatic
#351197 #4817CE #6839E9 #9270EF #BCA7F5

Accessibility & contrast

On white

6.27
#6839E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6839E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6839E9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839E9#FFFFFF#000000##FFFFFF
##6839E91.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065EE
Deuteranopia (green-blind)
#005BE6
Tritanopia (blue-blind)
#2C6B8F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6839e9;
/* rgb */ color: rgb(104, 57, 233);
/* oklch */ color: oklch(51.7% 0.244 286.6);
Tailwind
colors: {
  custom: {
    50: '#a075f1',
    500: '#6839e9',
    950: '#000000',
  },
}
SCSS
$custom: #6839e9;
$custom-light: #a075f1;
$custom-dark: #000000;
JSON
{
  "hex": "#6839e9",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 233
  },
  "hsl": {
    "h": 256.023,
    "s": 80,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51741,
    "c": 0.24368,
    "h": 286.6
  },
  "luminance": 0.11753
}

Semantic roles & 50–950 ramp

primary
#6839E9
secondary
#D0E39B
accent
#F631C2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6839E9

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

Preview Lab → · Contrast checker → · Palette generator →

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