#6838D6#6838D6

#6838D6 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.9% C 0.224 H 289.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#6838D6
RGBrgb(104, 56, 214)
HSLhsl(258, 66%, 53%)
HSVhsv(258, 74%, 84%)
CMYKcmyk(51.4%, 73.8%, 0%, 16.1%)
CIE-LABlab(38.94, 56.85, -73.36)
CIE-LCHlch(38.94, 92.81, 307.77°)
OKLaboklab(49.9% 0.075 -0.2108)
OKLCHoklch(49.9% 0.224 289.6)
XYZxyz(19.2572, 10.6256, 64.6416)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838D6 #A6D638
analogous
#3857D6 #6838D6 #B738D6
triadic
#6838D6 #D66838 #38D668
tetradic
#6838D6 #D63857 #A6D638 #38D6B7
square
#6838D6 #D63857 #A6D638 #38D6B7
split-complementary
#6838D6 #D6B738 #57D638
monochromatic
#37197A #4D24AD #6838D6 #8F6BE0 #B59DEB

Accessibility & contrast

On white

6.72
#6838D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6838D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6838D6
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838D6#FFFFFF#000000##FFFFFF
##6838D61.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDB
Deuteranopia (green-blind)
#0058D3
Tritanopia (blue-blind)
#406384
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6838d6;
/* rgb */ color: rgb(104, 56, 214);
/* oklch */ color: oklch(49.9% 0.224 289.6);
Tailwind
colors: {
  custom: {
    50: '#9e73e4',
    500: '#6838d6',
    950: '#000000',
  },
}
SCSS
$custom: #6838d6;
$custom-light: #9e73e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6838d6",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 214
  },
  "hsl": {
    "h": 258.228,
    "s": 65.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49904,
    "c": 0.22376,
    "h": 289.6
  },
  "luminance": 0.10626
}

Semantic roles & 50–950 ramp

primary
#6838D6
secondary
#C2D793
accent
#E93FB5
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6838D6

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

Preview Lab → · Contrast checker → · Palette generator →

#6838D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva