#6838B2#6838B2

#6838B2 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.9% C 0.183 H 296.7°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#6838B2
RGBrgb(104, 56, 178)
HSLhsl(264, 52%, 46%)
HSVhsv(264, 69%, 70%)
CMYKcmyk(41.6%, 68.5%, 0%, 30.2%)
CIE-LABlab(35.96, 47.19, -57.21)
CIE-LCHlch(35.96, 74.16, 309.52°)
OKLaboklab(46.86% 0.0823 -0.1634)
OKLCHoklch(46.86% 0.183 296.7)
XYZxyz(15.1569, 8.9855, 43.0467)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838B2 #82B238
analogous
#3845B2 #6838B2 #A538B2
triadic
#6838B2 #B26838 #38B268
tetradic
#6838B2 #B23845 #82B238 #38B2A5
square
#6838B2 #B23845 #82B238 #38B2A5
split-complementary
#6838B2 #B2A538 #45B238
monochromatic
#321B55 #4D2983 #6838B2 #885CCC #AA8ADA

Accessibility & contrast

On white

7.51
#6838B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6838B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838B2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838B2#FFFFFF#000000##FFFFFF
##6838B21.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#555570
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6838b2;
/* rgb */ color: rgb(104, 56, 178);
/* oklch */ color: oklch(46.9% 0.183 296.7);
Tailwind
colors: {
  custom: {
    50: '#9972ca',
    500: '#6838b2',
    950: '#000000',
  },
}
SCSS
$custom: #6838b2;
$custom-light: #9972ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6838b2",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 263.607,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46862,
    "c": 0.18294,
    "h": 296.7
  },
  "luminance": 0.08986
}

Semantic roles & 50–950 ramp

primary
#6838B2
secondary
#AAC581
accent
#DC4CA3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6838B2

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

Preview Lab → · Contrast checker → · Palette generator →

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