#6838CD#6838CD

#6838CD is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.214 H 291.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6838CD
RGBrgb(104, 56, 205)
HSLhsl(259, 60%, 51%)
HSVhsv(259, 73%, 80%)
CMYKcmyk(49.3%, 72.7%, 0%, 19.6%)
CIE-LABlab(38.16, 54.42, -69.45)
CIE-LCHlch(38.16, 88.23, 308.08°)
OKLaboklab(49.11% 0.0771 -0.1993)
OKLCHoklch(49.11% 0.214 291.1)
XYZxyz(18.1394, 10.1785, 58.7546)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838CD #9DCD38
analogous
#3852CD #6838CD #B238CD
triadic
#6838CD #CD6838 #38CD68
tetradic
#6838CD #CD3852 #9DCD38 #38CDB2
square
#6838CD #CD3852 #9DCD38 #38CDB2
split-complementary
#6838CD #CDB238 #52CD38
monochromatic
#371C6F #4F28A0 #6838CD #8D69D9 #B29AE6

Accessibility & contrast

On white

6.92
#6838CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6838CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6838CD
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838CD#FFFFFF#000000##FFFFFF
##6838CD1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#46607F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6838cd;
/* rgb */ color: rgb(104, 56, 205);
/* oklch */ color: oklch(49.1% 0.214 291.1);
Tailwind
colors: {
  custom: {
    50: '#9c73dd',
    500: '#6838cd',
    950: '#000000',
  },
}
SCSS
$custom: #6838cd;
$custom-light: #9c73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6838cd",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 259.329,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49113,
    "c": 0.21373,
    "h": 291.1
  },
  "luminance": 0.10179
}

Semantic roles & 50–950 ramp

primary
#6838CD
secondary
#BCD18F
accent
#E345B0
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6838CD

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

Preview Lab → · Contrast checker → · Palette generator →

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