#6A38D1#6A38D1

#6A38D1 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.218 H 291.2°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#6A38D1
RGBrgb(106, 56, 209)
HSLhsl(260, 62%, 52%)
HSVhsv(260, 73%, 82%)
CMYKcmyk(49.3%, 73.2%, 0%, 18%)
CIE-LABlab(38.72, 55.80, -70.84)
CIE-LCHlch(38.72, 90.18, 308.23°)
OKLaboklab(49.66% 0.0791 -0.2034)
OKLCHoklch(49.66% 0.218 291.2)
XYZxyz(18.8634, 10.4952, 61.3411)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38D1 #9FD138
analogous
#3853D1 #6A38D1 #B738D1
triadic
#6A38D1 #D16A38 #38D16A
tetradic
#6A38D1 #D13853 #9FD138 #38D1B7
square
#6A38D1 #D13853 #9FD138 #38D1B7
split-complementary
#6A38D1 #D1B738 #53D138
monochromatic
#381B74 #5026A6 #6A38D1 #8F6ADC #B49BE8

Accessibility & contrast

On white

6.78
#6A38D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6A38D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A38D1
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38D1#FFFFFF#000000##FFFFFF
##6A38D11.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0058CE
Tritanopia (blue-blind)
#486182
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6a38d1;
/* rgb */ color: rgb(106, 56, 209);
/* oklch */ color: oklch(49.7% 0.218 291.2);
Tailwind
colors: {
  custom: {
    50: '#9e73e0',
    500: '#6a38d1',
    950: '#000000',
  },
}
SCSS
$custom: #6a38d1;
$custom-light: #9e73e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38d1",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 259.608,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49661,
    "c": 0.21819,
    "h": 291.2
  },
  "luminance": 0.10496
}

Semantic roles & 50–950 ramp

primary
#6A38D1
secondary
#BED491
accent
#E642B0
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6A38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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