#6838BF#6838BF

#6838BF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.9% C 0.198 H 293.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#6838BF
RGBrgb(104, 56, 191)
HSLhsl(261, 55%, 48%)
HSVhsv(261, 71%, 75%)
CMYKcmyk(45.5%, 70.7%, 0%, 25.1%)
CIE-LABlab(36.99, 50.66, -63.19)
CIE-LCHlch(36.99, 80.99, 308.72°)
OKLaboklab(47.92% 0.08 -0.181)
OKLCHoklch(47.92% 0.198 293.9)
XYZxyz(16.5245, 9.5325, 50.2494)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838BF #8FBF38
analogous
#384CBF #6838BF #AB38BF
triadic
#6838BF #BF6838 #38BF68
tetradic
#6838BF #BF384C #8FBF38 #38BFAB
square
#6838BF #BF384C #8FBF38 #38BFAB
split-complementary
#6838BF #BFAB38 #4CBF38
monochromatic
#341C60 #4E2A90 #6838BF #8A63D1 #AE92DF

Accessibility & contrast

On white

7.22
#6838BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6838BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838BF
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838BF#FFFFFF#000000##FFFFFF
##6838BF1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#0055BC
Tritanopia (blue-blind)
#4F5A78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6838bf;
/* rgb */ color: rgb(104, 56, 191);
/* oklch */ color: oklch(47.9% 0.198 293.9);
Tailwind
colors: {
  custom: {
    50: '#9b73d3',
    500: '#6838bf',
    950: '#000000',
  },
}
SCSS
$custom: #6838bf;
$custom-light: #9b73d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6838bf",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 261.333,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47922,
    "c": 0.19789,
    "h": 293.9
  },
  "luminance": 0.09533
}

Semantic roles & 50–950 ramp

primary
#6838BF
secondary
#B3CA89
accent
#DE4AA9
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6838BF

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

Preview Lab → · Contrast checker → · Palette generator →

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