#6838B3#6838B3

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

Color values

HEX#6838B3
RGBrgb(104, 56, 179)
HSLhsl(263, 52%, 46%)
HSVhsv(263, 69%, 70%)
CMYKcmyk(41.9%, 68.7%, 0%, 29.8%)
CIE-LABlab(36.03, 47.46, -57.67)
CIE-LCHlch(36.03, 74.69, 309.45°)
OKLaboklab(46.94% 0.0821 -0.1648)
OKLCHoklch(46.94% 0.184 296.5)
XYZxyz(15.2576, 9.0258, 43.5774)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838B3 #83B338
analogous
#3845B3 #6838B3 #A538B3
triadic
#6838B3 #B36838 #38B368
tetradic
#6838B3 #B33845 #83B338 #38B3A5
square
#6838B3 #B33845 #83B338 #38B3A5
split-complementary
#6838B3 #B3A538 #45B338
monochromatic
#321B56 #4D2984 #6838B3 #885CCC #AA8BDB

Accessibility & contrast

On white

7.49
#6838B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6838B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838B3
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838B3#FFFFFF#000000##FFFFFF
##6838B31.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#555671
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6838b3;
/* rgb */ color: rgb(104, 56, 179);
/* oklch */ color: oklch(46.9% 0.184 296.5);
Tailwind
colors: {
  custom: {
    50: '#9972cb',
    500: '#6838b3',
    950: '#000000',
  },
}
SCSS
$custom: #6838b3;
$custom-light: #9972cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6838b3",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 263.415,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46942,
    "c": 0.1841,
    "h": 296.5
  },
  "luminance": 0.09026
}

Semantic roles & 50–950 ramp

primary
#6838B3
secondary
#ABC582
accent
#DC4CA4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6838B3

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

Preview Lab → · Contrast checker → · Palette generator →

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