#6D38C6#6D38C6

#6D38C6 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.0% C 0.206 H 294.6°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#6D38C6
RGBrgb(109, 56, 198)
HSLhsl(262, 56%, 50%)
HSVhsv(262, 72%, 78%)
CMYKcmyk(44.9%, 71.7%, 0%, 22.4%)
CIE-LABlab(38.12, 53.38, -65.42)
CIE-LCHlch(38.12, 84.43, 309.21°)
OKLaboklab(49.03% 0.0858 -0.1873)
OKLCHoklch(49.03% 0.206 294.6)
XYZxyz(17.9111, 10.1563, 54.4318)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38C6 #91C638
analogous
#384AC6 #6D38C6 #B438C6
triadic
#6D38C6 #C66D38 #38C66D
tetradic
#6D38C6 #C6384A #91C638 #38C6B4
square
#6D38C6 #C6384A #91C638 #38C6B4
split-complementary
#6D38C6 #C6B438 #4AC638
monochromatic
#381D67 #532B96 #6D38C6 #9067D4 #B397E2

Accessibility & contrast

On white

6.93
#6D38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6D38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D38C6
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D38C6#FFFFFF#000000##FFFFFF
##6D38C61.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0057C3
Tritanopia (blue-blind)
#545C7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6d38c6;
/* rgb */ color: rgb(109, 56, 198);
/* oklch */ color: oklch(49.0% 0.206 294.6);
Tailwind
colors: {
  custom: {
    50: '#9f73d8',
    500: '#6d38c6',
    950: '#000000',
  },
}
SCSS
$custom: #6d38c6;
$custom-light: #9f73d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38c6",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 262.394,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4903,
    "c": 0.20606,
    "h": 294.6
  },
  "luminance": 0.10157
}

Semantic roles & 50–950 ramp

primary
#6D38C6
secondary
#B5CD8D
accent
#DF49A7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6D38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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