#6D38C7#6D38C7

#6D38C7 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.207 H 294.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#6D38C7
RGBrgb(109, 56, 199)
HSLhsl(262, 56%, 50%)
HSVhsv(262, 72%, 78%)
CMYKcmyk(45.2%, 71.9%, 0%, 22%)
CIE-LABlab(38.20, 53.64, -65.87)
CIE-LCHlch(38.20, 84.94, 309.16°)
OKLaboklab(49.11% 0.0856 -0.1887)
OKLCHoklch(49.11% 0.207 294.4)
XYZxyz(18.0268, 10.2026, 55.0413)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38C7 #92C738
analogous
#384AC7 #6D38C7 #B538C7
triadic
#6D38C7 #C76D38 #38C76D
tetradic
#6D38C7 #C7384A #92C738 #38C7B5
square
#6D38C7 #C7384A #92C738 #38C7B5
split-complementary
#6D38C7 #C7B538 #4AC738
monochromatic
#391D67 #532B97 #6D38C7 #9068D4 #B398E2

Accessibility & contrast

On white

6.91
#6D38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6D38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D38C7
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D38C7#FFFFFF#000000##FFFFFF
##6D38C71.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#535D7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6d38c7;
/* rgb */ color: rgb(109, 56, 199);
/* oklch */ color: oklch(49.1% 0.207 294.4);
Tailwind
colors: {
  custom: {
    50: '#9f73d9',
    500: '#6d38c7',
    950: '#000000',
  },
}
SCSS
$custom: #6d38c7;
$custom-light: #9f73d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38c7",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 262.238,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.49114,
    "c": 0.20718,
    "h": 294.4
  },
  "luminance": 0.10203
}

Semantic roles & 50–950 ramp

primary
#6D38C7
secondary
#B6CD8D
accent
#DF48A7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6D38C7

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

Preview Lab → · Contrast checker → · Palette generator →

#6D38C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva