#6838B7#6838B7

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

Color values

HEX#6838B7
RGBrgb(104, 56, 183)
HSLhsl(263, 53%, 47%)
HSVhsv(263, 69%, 72%)
CMYKcmyk(43.2%, 69.4%, 0%, 28.2%)
CIE-LABlab(36.35, 48.52, -59.53)
CIE-LCHlch(36.35, 76.80, 309.18°)
OKLaboklab(47.26% 0.0815 -0.1702)
OKLCHoklch(47.26% 0.189 295.6)
XYZxyz(15.6681, 9.1899, 45.7389)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838B7 #87B738
analogous
#3848B7 #6838B7 #A838B7
triadic
#6838B7 #B76838 #38B768
tetradic
#6838B7 #B73848 #87B738 #38B7A8
square
#6838B7 #B73848 #87B738 #38B7A8
split-complementary
#6838B7 #B7A838 #48B738
monochromatic
#331B59 #4D2A88 #6838B7 #885ECE #AB8DDC

Accessibility & contrast

On white

7.40
#6838B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6838B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838B7
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838B7#FFFFFF#000000##FFFFFF
##6838B71.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#535773
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6838b7;
/* rgb */ color: rgb(104, 56, 183);
/* oklch */ color: oklch(47.3% 0.189 295.6);
Tailwind
colors: {
  custom: {
    50: '#9a72ce',
    500: '#6838b7',
    950: '#000000',
  },
}
SCSS
$custom: #6838b7;
$custom-light: #9a72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6838b7",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 262.677,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47264,
    "c": 0.18872,
    "h": 295.6
  },
  "luminance": 0.0919
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6838B7

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

Preview Lab → · Contrast checker → · Palette generator →

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