#6838CC#6838CC

#6838CC is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.213 H 291.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6838CC
RGBrgb(104, 56, 204)
HSLhsl(259, 59%, 51%)
HSVhsv(259, 73%, 80%)
CMYKcmyk(49%, 72.5%, 0%, 20%)
CIE-LABlab(38.08, 54.15, -69.01)
CIE-LCHlch(38.08, 87.72, 308.12°)
OKLaboklab(49.03% 0.0773 -0.198)
OKLCHoklch(49.03% 0.213 291.3)
XYZxyz(18.0191, 10.1303, 58.1210)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838CC #9CCC38
analogous
#3852CC #6838CC #B238CC
triadic
#6838CC #CC6838 #38CC68
tetradic
#6838CC #CC3852 #9CCC38 #38CCB2
square
#6838CC #CC3852 #9CCC38 #38CCB2
split-complementary
#6838CC #CCB238 #52CC38
monochromatic
#361C6E #4F299E #6838CC #8D69D8 #B299E5

Accessibility & contrast

On white

6.94
#6838CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6838CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6838CC
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838CC#FFFFFF#000000##FFFFFF
##6838CC1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#475F7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6838cc;
/* rgb */ color: rgb(104, 56, 204);
/* oklch */ color: oklch(49.0% 0.213 291.3);
Tailwind
colors: {
  custom: {
    50: '#9c73dd',
    500: '#6838cc',
    950: '#000000',
  },
}
SCSS
$custom: #6838cc;
$custom-light: #9c73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6838cc",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 259.459,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49027,
    "c": 0.21261,
    "h": 291.3
  },
  "luminance": 0.10131
}

Semantic roles & 50–950 ramp

primary
#6838CC
secondary
#BBD18F
accent
#E245AF
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6838CC

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

Preview Lab → · Contrast checker → · Palette generator →

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