#6838BB#6838BB

#6838BB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.193 H 294.7°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#6838BB
RGBrgb(104, 56, 187)
HSLhsl(262, 54%, 48%)
HSVhsv(262, 70%, 73%)
CMYKcmyk(44.4%, 70.1%, 0%, 26.7%)
CIE-LABlab(36.67, 49.59, -61.37)
CIE-LCHlch(36.67, 78.90, 308.94°)
OKLaboklab(47.59% 0.0808 -0.1756)
OKLCHoklch(47.59% 0.193 294.7)
XYZxyz(16.0903, 9.3588, 47.9627)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838BB #8BBB38
analogous
#3849BB #6838BB #A938BB
triadic
#6838BB #BB6838 #38BB68
tetradic
#6838BB #BB3849 #8BBB38 #38BBA9
square
#6838BB #BB3849 #8BBB38 #38BBA9
split-complementary
#6838BB #BBA938 #49BB38
monochromatic
#341C5D #4E2A8C #6838BB #8961D0 #AC90DE

Accessibility & contrast

On white

7.31
#6838BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6838BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838BB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838BB#FFFFFF#000000##FFFFFF
##6838BB1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#515975
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6838bb;
/* rgb */ color: rgb(104, 56, 187);
/* oklch */ color: oklch(47.6% 0.193 294.7);
Tailwind
colors: {
  custom: {
    50: '#9a72d0',
    500: '#6838bb',
    950: '#000000',
  },
}
SCSS
$custom: #6838bb;
$custom-light: #9a72d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6838bb",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 261.985,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47591,
    "c": 0.19332,
    "h": 294.7
  },
  "luminance": 0.09359
}

Semantic roles & 50–950 ramp

primary
#6838BB
secondary
#B0C886
accent
#DD4BA8
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6838BB

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

Preview Lab → · Contrast checker → · Palette generator →

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