#6838BA#6838BA

#6838BA is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.5% C 0.192 H 294.9°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#6838BA
RGBrgb(104, 56, 186)
HSLhsl(262, 54%, 47%)
HSVhsv(262, 70%, 73%)
CMYKcmyk(44.1%, 69.9%, 0%, 27.1%)
CIE-LABlab(36.59, 49.32, -60.91)
CIE-LCHlch(36.59, 78.38, 309.00°)
OKLaboklab(47.51% 0.081 -0.1743)
OKLCHoklch(47.51% 0.192 294.9)
XYZxyz(15.9836, 9.3162, 47.4009)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838BA #8ABA38
analogous
#3849BA #6838BA #A938BA
triadic
#6838BA #BA6838 #38BA68
tetradic
#6838BA #BA3849 #8ABA38 #38BAA9
square
#6838BA #BA3849 #8ABA38 #38BAA9
split-complementary
#6838BA #BAA938 #49BA38
monochromatic
#331C5C #4E2A8B #6838BA #8960CF #AC8FDD

Accessibility & contrast

On white

7.33
#6838BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6838BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838BA
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838BA#FFFFFF#000000##FFFFFF
##6838BA1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#515875
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6838ba;
/* rgb */ color: rgb(104, 56, 186);
/* oklch */ color: oklch(47.5% 0.192 294.9);
Tailwind
colors: {
  custom: {
    50: '#9a72d0',
    500: '#6838ba',
    950: '#000000',
  },
}
SCSS
$custom: #6838ba;
$custom-light: #9a72d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6838ba",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 262.154,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47509,
    "c": 0.19217,
    "h": 294.9
  },
  "luminance": 0.09317
}

Semantic roles & 50–950 ramp

primary
#6838BA
secondary
#B0C886
accent
#DD4BA7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6838BA

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

Preview Lab → · Contrast checker → · Palette generator →

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