#6838AE#6838AE

#6838AE is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.178 H 297.7°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#6838AE
RGBrgb(104, 56, 174)
HSLhsl(264, 51%, 45%)
HSVhsv(264, 68%, 68%)
CMYKcmyk(40.2%, 67.8%, 0%, 31.8%)
CIE-LABlab(35.65, 46.13, -55.33)
CIE-LCHlch(35.65, 72.04, 309.82°)
OKLaboklab(46.55% 0.0829 -0.1579)
OKLCHoklch(46.55% 0.178 297.7)
XYZxyz(14.7611, 8.8272, 40.9623)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838AE #7EAE38
analogous
#3843AE #6838AE #A338AE
triadic
#6838AE #AE6838 #38AE68
tetradic
#6838AE #AE3843 #7EAE38 #38AEA3
square
#6838AE #AE3843 #7EAE38 #38AEA3
split-complementary
#6838AE #AEA338 #43AE38
monochromatic
#311A51 #4C2980 #6838AE #8759CA #A988D9

Accessibility & contrast

On white

7.59
#6838AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6838AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838AE
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838AE#FFFFFF#000000##FFFFFF
##6838AE1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#57546E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6838ae;
/* rgb */ color: rgb(104, 56, 174);
/* oklch */ color: oklch(46.5% 0.178 297.7);
Tailwind
colors: {
  custom: {
    50: '#9972c7',
    500: '#6838ae',
    950: '#000000',
  },
}
SCSS
$custom: #6838ae;
$custom-light: #9972c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6838ae",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 264.407,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46546,
    "c": 0.17829,
    "h": 297.7
  },
  "luminance": 0.08827
}

Semantic roles & 50–950 ramp

primary
#6838AE
secondary
#A7C37F
accent
#DB4DA1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6838AE

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

Preview Lab → · Contrast checker → · Palette generator →

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