#6D38C5#6D38C5

#6D38C5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.9% C 0.205 H 294.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#6D38C5
RGBrgb(109, 56, 197)
HSLhsl(263, 56%, 50%)
HSVhsv(263, 72%, 77%)
CMYKcmyk(44.7%, 71.6%, 0%, 22.7%)
CIE-LABlab(38.04, 53.11, -64.97)
CIE-LCHlch(38.04, 83.92, 309.27°)
OKLaboklab(48.95% 0.086 -0.186)
OKLCHoklch(48.95% 0.205 294.8)
XYZxyz(17.7962, 10.1103, 53.8263)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38C5 #90C538
analogous
#384AC5 #6D38C5 #B338C5
triadic
#6D38C5 #C56D38 #38C56D
tetradic
#6D38C5 #C5384A #90C538 #38C5B3
square
#6D38C5 #C5384A #90C538 #38C5B3
split-complementary
#6D38C5 #C5B338 #4AC538
monochromatic
#381D66 #532A95 #6D38C5 #9067D4 #B296E1

Accessibility & contrast

On white

6.95
#6D38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6D38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D38C5
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D38C5#FFFFFF#000000##FFFFFF
##6D38C51.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d38c5;
/* rgb */ color: rgb(109, 56, 197);
/* oklch */ color: oklch(48.9% 0.205 294.8);
Tailwind
colors: {
  custom: {
    50: '#9e73d8',
    500: '#6d38c5',
    950: '#000000',
  },
}
SCSS
$custom: #6d38c5;
$custom-light: #9e73d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38c5",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 262.553,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48947,
    "c": 0.20495,
    "h": 294.8
  },
  "luminance": 0.10111
}

Semantic roles & 50–950 ramp

primary
#6D38C5
secondary
#B4CD8C
accent
#DF49A7
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6D38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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