#6838BE#6838BE

#6838BE is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.8% C 0.197 H 294.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#6838BE
RGBrgb(104, 56, 190)
HSLhsl(261, 54%, 48%)
HSVhsv(261, 71%, 75%)
CMYKcmyk(45.3%, 70.5%, 0%, 25.5%)
CIE-LABlab(36.91, 50.39, -62.74)
CIE-LCHlch(36.91, 80.47, 308.77°)
OKLaboklab(47.84% 0.0802 -0.1796)
OKLCHoklch(47.84% 0.197 294.1)
XYZxyz(16.4148, 9.4886, 49.6718)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838BE #8EBE38
analogous
#384BBE #6838BE #AB38BE
triadic
#6838BE #BE6838 #38BE68
tetradic
#6838BE #BE384B #8EBE38 #38BEAB
square
#6838BE #BE384B #8EBE38 #38BEAB
split-complementary
#6838BE #BEAB38 #4BBE38
monochromatic
#341C5F #4E2A8F #6838BE #8A62D1 #AD92DF

Accessibility & contrast

On white

7.25
#6838BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6838BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838BE
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838BE#FFFFFF#000000##FFFFFF
##6838BE1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#0055BB
Tritanopia (blue-blind)
#4F5A77
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6838be;
/* rgb */ color: rgb(104, 56, 190);
/* oklch */ color: oklch(47.8% 0.197 294.1);
Tailwind
colors: {
  custom: {
    50: '#9b72d3',
    500: '#6838be',
    950: '#000000',
  },
}
SCSS
$custom: #6838be;
$custom-light: #9b72d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6838be",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 261.493,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47839,
    "c": 0.19675,
    "h": 294.1
  },
  "luminance": 0.09489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6838BE

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

Preview Lab → · Contrast checker → · Palette generator →

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