#6838C0#6838C0

#6838C0 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.0% C 0.199 H 293.7°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#6838C0
RGBrgb(104, 56, 192)
HSLhsl(261, 55%, 49%)
HSVhsv(261, 71%, 75%)
CMYKcmyk(45.8%, 70.8%, 0%, 24.7%)
CIE-LABlab(37.07, 50.92, -63.65)
CIE-LCHlch(37.07, 81.51, 308.66°)
OKLaboklab(48.01% 0.0799 -0.1823)
OKLCHoklch(48.01% 0.199 293.7)
XYZxyz(16.6349, 9.5767, 50.8310)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838C0 #90C038
analogous
#384CC0 #6838C0 #AC38C0
triadic
#6838C0 #C06838 #38C068
tetradic
#6838C0 #C0384C #90C038 #38C0AC
square
#6838C0 #C0384C #90C038 #38C0AC
split-complementary
#6838C0 #C0AC38 #4CC038
monochromatic
#351C61 #4E2A91 #6838C0 #8A64D2 #AE93DF

Accessibility & contrast

On white

7.20
#6838C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#6838C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838C0
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838C0#FFFFFF#000000##FFFFFF
##6838C01.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#0055BD
Tritanopia (blue-blind)
#4E5B78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6838c0;
/* rgb */ color: rgb(104, 56, 192);
/* oklch */ color: oklch(48.0% 0.199 293.7);
Tailwind
colors: {
  custom: {
    50: '#9b73d4',
    500: '#6838c0',
    950: '#000000',
  },
}
SCSS
$custom: #6838c0;
$custom-light: #9b73d4;
$custom-dark: #000000;
JSON
{
  "hex": "#6838c0",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 261.176,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48005,
    "c": 0.19903,
    "h": 293.7
  },
  "luminance": 0.09577
}

Semantic roles & 50–950 ramp

primary
#6838C0
secondary
#B4CB89
accent
#DE4AAA
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6838C0

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

Preview Lab → · Contrast checker → · Palette generator →

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