#6838E7#6838E7

#6838E7 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.242 H 286.9°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#6838E7
RGBrgb(104, 56, 231)
HSLhsl(256, 78%, 56%)
HSVhsv(256, 76%, 91%)
CMYKcmyk(55%, 75.8%, 0%, 9.4%)
CIE-LABlab(40.48, 61.43, -80.57)
CIE-LCHlch(40.48, 101.31, 307.32°)
OKLaboklab(51.44% 0.0706 -0.2319)
OKLCHoklch(51.44% 0.242 286.9)
XYZxyz(21.5426, 11.5397, 76.6781)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838E7 #B7E738
analogous
#3860E7 #6838E7 #C038E7
triadic
#6838E7 #E76838 #38E768
tetradic
#6838E7 #E73860 #B7E738 #38E7C0
square
#6838E7 #E73860 #B7E738 #38E7C0
split-complementary
#6838E7 #E7C038 #60E738
monochromatic
#351293 #4918CA #6838E7 #916FEE #BBA5F4

Accessibility & contrast

On white

6.35
#6838E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6838E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6838E7
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838E7#FFFFFF#000000##FFFFFF
##6838E71.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EC
Deuteranopia (green-blind)
#005AE4
Tritanopia (blue-blind)
#2F6A8E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6838e7;
/* rgb */ color: rgb(104, 56, 231);
/* oklch */ color: oklch(51.4% 0.242 286.9);
Tailwind
colors: {
  custom: {
    50: '#a074f0',
    500: '#6838e7',
    950: '#000000',
  },
}
SCSS
$custom: #6838e7;
$custom-light: #a074f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6838e7",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 231
  },
  "hsl": {
    "h": 256.457,
    "s": 78.475,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51445,
    "c": 0.24242,
    "h": 286.9
  },
  "luminance": 0.11541
}

Semantic roles & 50–950 ramp

primary
#6838E7
secondary
#CEE199
accent
#F533C0
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6838E7

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

Preview Lab → · Contrast checker → · Palette generator →

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