#6838AC#6838AC

#6838AC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.176 H 298.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#6838AC
RGBrgb(104, 56, 172)
HSLhsl(265, 51%, 45%)
HSVhsv(265, 67%, 67%)
CMYKcmyk(39.5%, 67.4%, 0%, 32.5%)
CIE-LABlab(35.50, 45.61, -54.38)
CIE-LCHlch(35.50, 70.97, 309.98°)
OKLaboklab(46.39% 0.0831 -0.1551)
OKLCHoklch(46.39% 0.176 298.2)
XYZxyz(14.5676, 8.7497, 39.9431)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838AC #7CAC38
analogous
#3842AC #6838AC #A238AC
triadic
#6838AC #AC6838 #38AC68
tetradic
#6838AC #AC3842 #7CAC38 #38ACA2
square
#6838AC #AC3842 #7CAC38 #38ACA2
split-complementary
#6838AC #ACA238 #42AC38
monochromatic
#301A50 #4C297E #6838AC #8758C9 #A887D8

Accessibility & contrast

On white

7.64
#6838AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6838AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838AC
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838AC#FFFFFF#000000##FFFFFF
##6838AC1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#58536D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6838ac;
/* rgb */ color: rgb(104, 56, 172);
/* oklch */ color: oklch(46.4% 0.176 298.2);
Tailwind
colors: {
  custom: {
    50: '#9972c6',
    500: '#6838ac',
    950: '#000000',
  },
}
SCSS
$custom: #6838ac;
$custom-light: #9972c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6838ac",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 264.828,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4639,
    "c": 0.17596,
    "h": 298.2
  },
  "luminance": 0.0875
}

Semantic roles & 50–950 ramp

primary
#6838AC
secondary
#A6C27E
accent
#DA4DA0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6838AC

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

Preview Lab → · Contrast checker → · Palette generator →

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