#6838DB#6838DB

#6838DB is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.4% C 0.229 H 288.8°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#6838DB
RGBrgb(104, 56, 219)
HSLhsl(258, 69%, 54%)
HSVhsv(258, 74%, 86%)
CMYKcmyk(52.5%, 74.4%, 0%, 14.1%)
CIE-LABlab(39.39, 58.19, -75.51)
CIE-LCHlch(39.39, 95.33, 307.62°)
OKLaboklab(50.35% 0.0738 -0.2171)
OKLCHoklch(50.35% 0.229 288.8)
XYZxyz(19.9055, 10.8849, 68.0562)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838DB #ABDB38
analogous
#385ADB #6838DB #BA38DB
triadic
#6838DB #DB6838 #38DB68
tetradic
#6838DB #DB385A #ABDB38 #38DBBA
square
#6838DB #DB385A #ABDB38 #38DBBA
split-complementary
#6838DB #DBBA38 #5ADB38
monochromatic
#371781 #4C21B5 #6838DB #8F6CE4 #B7A0EE

Accessibility & contrast

On white

6.61
#6838DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6838DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6838DB
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838DB#FFFFFF#000000##FFFFFF
##6838DB1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E0
Deuteranopia (green-blind)
#0059D8
Tritanopia (blue-blind)
#3B6587
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6838db;
/* rgb */ color: rgb(104, 56, 219);
/* oklch */ color: oklch(50.4% 0.229 288.8);
Tailwind
colors: {
  custom: {
    50: '#9e74e7',
    500: '#6838db',
    950: '#000000',
  },
}
SCSS
$custom: #6838db;
$custom-light: #9e74e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6838db",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 257.669,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50351,
    "c": 0.22929,
    "h": 288.8
  },
  "luminance": 0.10886
}

Semantic roles & 50–950 ramp

primary
#6838DB
secondary
#C6DA95
accent
#EC3CB8
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6838DB

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

Preview Lab → · Contrast checker → · Palette generator →

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