#6838D2#6838D2

#6838D2 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.5% C 0.219 H 290.3°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#6838D2
RGBrgb(104, 56, 210)
HSLhsl(259, 63%, 52%)
HSVhsv(259, 73%, 82%)
CMYKcmyk(50.5%, 73.3%, 0%, 17.6%)
CIE-LABlab(38.59, 55.77, -71.63)
CIE-LCHlch(38.59, 90.78, 307.90°)
OKLaboklab(49.55% 0.076 -0.2057)
OKLCHoklch(49.55% 0.219 290.3)
XYZxyz(18.7526, 10.4238, 61.9842)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838D2 #A2D238
analogous
#3855D2 #6838D2 #B538D2
triadic
#6838D2 #D26838 #38D268
tetradic
#6838D2 #D23855 #A2D238 #38D2B5
square
#6838D2 #D23855 #A2D238 #38D2B5
split-complementary
#6838D2 #D2B538 #55D238
monochromatic
#371A75 #4E26A7 #6838D2 #8E6ADD #B49CE9

Accessibility & contrast

On white

6.81
#6838D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6838D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6838D2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838D2#FFFFFF#000000##FFFFFF
##6838D21.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0057CF
Tritanopia (blue-blind)
#436282
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6838d2;
/* rgb */ color: rgb(104, 56, 210);
/* oklch */ color: oklch(49.5% 0.219 290.3);
Tailwind
colors: {
  custom: {
    50: '#9d73e1',
    500: '#6838d2',
    950: '#000000',
  },
}
SCSS
$custom: #6838d2;
$custom-light: #9d73e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6838d2",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 258.701,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.4955,
    "c": 0.21931,
    "h": 290.3
  },
  "luminance": 0.10425
}

Semantic roles & 50–950 ramp

primary
#6838D2
secondary
#C0D591
accent
#E642B3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6838D2

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

Preview Lab → · Contrast checker → · Palette generator →

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