#6838B4#6838B4

#6838B4 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.185 H 296.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#6838B4
RGBrgb(104, 56, 180)
HSLhsl(263, 53%, 46%)
HSVhsv(263, 69%, 71%)
CMYKcmyk(42.2%, 68.9%, 0%, 29.4%)
CIE-LABlab(36.11, 47.72, -58.14)
CIE-LCHlch(36.11, 75.22, 309.38°)
OKLaboklab(47.02% 0.082 -0.1661)
OKLCHoklch(47.02% 0.185 296.3)
XYZxyz(15.3591, 9.0664, 44.1119)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838B4 #84B438
analogous
#3846B4 #6838B4 #A638B4
triadic
#6838B4 #B46838 #38B468
tetradic
#6838B4 #B43846 #84B438 #38B4A6
square
#6838B4 #B43846 #84B438 #38B4A6
split-complementary
#6838B4 #B4A638 #46B438
monochromatic
#321B57 #4D2985 #6838B4 #885DCD #AA8BDB

Accessibility & contrast

On white

7.46
#6838B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6838B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838B4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838B4#FFFFFF#000000##FFFFFF
##6838B41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#545672
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6838b4;
/* rgb */ color: rgb(104, 56, 180);
/* oklch */ color: oklch(47.0% 0.185 296.3);
Tailwind
colors: {
  custom: {
    50: '#9972cb',
    500: '#6838b4',
    950: '#000000',
  },
}
SCSS
$custom: #6838b4;
$custom-light: #9972cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6838b4",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 263.226,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47022,
    "c": 0.18526,
    "h": 296.3
  },
  "luminance": 0.09067
}

Semantic roles & 50–950 ramp

primary
#6838B4
secondary
#ABC582
accent
#DC4CA4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6838B4

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

Preview Lab → · Contrast checker → · Palette generator →

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