#6838B8#6838B8

#6838B8 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.3% C 0.190 H 295.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#6838B8
RGBrgb(104, 56, 184)
HSLhsl(263, 53%, 47%)
HSVhsv(263, 70%, 72%)
CMYKcmyk(43.5%, 69.6%, 0%, 27.8%)
CIE-LABlab(36.43, 48.79, -59.99)
CIE-LCHlch(36.43, 77.33, 309.12°)
OKLaboklab(47.35% 0.0813 -0.1716)
OKLCHoklch(47.35% 0.19 295.4)
XYZxyz(15.7725, 9.2317, 46.2890)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838B8 #88B838
analogous
#3848B8 #6838B8 #A838B8
triadic
#6838B8 #B86838 #38B868
tetradic
#6838B8 #B83848 #88B838 #38B8A8
square
#6838B8 #B83848 #88B838 #38B8A8
split-complementary
#6838B8 #B8A838 #48B838
monochromatic
#331B5A #4D2A89 #6838B8 #895FCE #AB8EDD

Accessibility & contrast

On white

7.38
#6838B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6838B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838B8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838B8#FFFFFF#000000##FFFFFF
##6838B81.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#525874
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6838b8;
/* rgb */ color: rgb(104, 56, 184);
/* oklch */ color: oklch(47.3% 0.190 295.4);
Tailwind
colors: {
  custom: {
    50: '#9a72ce',
    500: '#6838b8',
    950: '#000000',
  },
}
SCSS
$custom: #6838b8;
$custom-light: #9a72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6838b8",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 262.5,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47345,
    "c": 0.18988,
    "h": 295.4
  },
  "luminance": 0.09232
}

Semantic roles & 50–950 ramp

primary
#6838B8
secondary
#AEC785
accent
#DD4BA6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6838B8

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

Preview Lab → · Contrast checker → · Palette generator →

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