#6838D5#6838D5

#6838D5 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.8% C 0.223 H 289.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#6838D5
RGBrgb(104, 56, 213)
HSLhsl(258, 65%, 53%)
HSVhsv(258, 74%, 84%)
CMYKcmyk(51.2%, 73.7%, 0%, 16.5%)
CIE-LABlab(38.85, 56.58, -72.93)
CIE-LCHlch(38.85, 92.30, 307.80°)
OKLaboklab(49.82% 0.0752 -0.2095)
OKLCHoklch(49.82% 0.223 289.8)
XYZxyz(19.1299, 10.5747, 63.9710)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838D5 #A5D538
analogous
#3856D5 #6838D5 #B638D5
triadic
#6838D5 #D56838 #38D568
tetradic
#6838D5 #D53856 #A5D538 #38D5B6
square
#6838D5 #D53856 #A5D538 #38D5B6
split-complementary
#6838D5 #D5B638 #56D538
monochromatic
#371A79 #4E24AC #6838D5 #8E6BE0 #B59DEA

Accessibility & contrast

On white

6.74
#6838D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6838D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6838D5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838D5#FFFFFF#000000##FFFFFF
##6838D51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDA
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#406384
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6838d5;
/* rgb */ color: rgb(104, 56, 213);
/* oklch */ color: oklch(49.8% 0.223 289.8);
Tailwind
colors: {
  custom: {
    50: '#9d73e3',
    500: '#6838d5',
    950: '#000000',
  },
}
SCSS
$custom: #6838d5;
$custom-light: #9d73e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6838d5",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 258.344,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49815,
    "c": 0.22265,
    "h": 289.8
  },
  "luminance": 0.10575
}

Semantic roles & 50–950 ramp

primary
#6838D5
secondary
#C2D692
accent
#E840B5
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6838D5

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

Preview Lab → · Contrast checker → · Palette generator →

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