#6838C4#6838C4

#6838C4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.204 H 292.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#6838C4
RGBrgb(104, 56, 196)
HSLhsl(261, 56%, 49%)
HSVhsv(261, 71%, 77%)
CMYKcmyk(46.9%, 71.4%, 0%, 23.1%)
CIE-LABlab(37.40, 52.00, -65.45)
CIE-LCHlch(37.40, 83.59, 308.47°)
OKLaboklab(48.34% 0.0791 -0.1876)
OKLCHoklch(48.34% 0.204 292.8)
XYZxyz(17.0841, 9.7564, 53.1969)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838C4 #94C438
analogous
#384EC4 #6838C4 #AE38C4
triadic
#6838C4 #C46838 #38C468
tetradic
#6838C4 #C4384E #94C438 #38C4AE
square
#6838C4 #C4384E #94C438 #38C4AE
split-complementary
#6838C4 #C4AE38 #4EC438
monochromatic
#351D65 #4F2A94 #6838C4 #8B66D3 #AF96E1

Accessibility & contrast

On white

7.12
#6838C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6838C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838C4
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838C4#FFFFFF#000000##FFFFFF
##6838C41.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0055C1
Tritanopia (blue-blind)
#4C5C7A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6838c4;
/* rgb */ color: rgb(104, 56, 196);
/* oklch */ color: oklch(48.3% 0.204 292.8);
Tailwind
colors: {
  custom: {
    50: '#9b73d7',
    500: '#6838c4',
    950: '#000000',
  },
}
SCSS
$custom: #6838c4;
$custom-light: #9b73d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6838c4",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 260.571,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48342,
    "c": 0.20357,
    "h": 292.8
  },
  "luminance": 0.09757
}

Semantic roles & 50–950 ramp

primary
#6838C4
secondary
#B6CC8C
accent
#DF49AB
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6838C4

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

Preview Lab → · Contrast checker → · Palette generator →

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