#6A38D6#6A38D6

#6A38D6 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.224 H 290.4°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#6A38D6
RGBrgb(106, 56, 214)
HSLhsl(259, 66%, 53%)
HSVhsv(259, 74%, 84%)
CMYKcmyk(50.5%, 73.8%, 0%, 16.1%)
CIE-LABlab(39.15, 57.14, -73.01)
CIE-LCHlch(39.15, 92.71, 308.05°)
OKLaboklab(50.1% 0.0779 -0.2097)
OKLCHoklch(50.1% 0.224 290.4)
XYZxyz(19.4921, 10.7467, 64.6526)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38D6 #A4D638
analogous
#3855D6 #6A38D6 #B938D6
triadic
#6A38D6 #D66A38 #38D66A
tetradic
#6A38D6 #D63855 #A4D638 #38D6B9
square
#6A38D6 #D63855 #A4D638 #38D6B9
split-complementary
#6A38D6 #D6B938 #55D638
monochromatic
#38197A #4F24AD #6A38D6 #906BE0 #B69DEB

Accessibility & contrast

On white

6.67
#6A38D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6A38D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A38D6
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38D6#FFFFFF#000000##FFFFFF
##6A38D61.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDB
Deuteranopia (green-blind)
#0059D3
Tritanopia (blue-blind)
#446384
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6a38d6;
/* rgb */ color: rgb(106, 56, 214);
/* oklch */ color: oklch(50.1% 0.224 290.4);
Tailwind
colors: {
  custom: {
    50: '#9f74e4',
    500: '#6a38d6',
    950: '#000000',
  },
}
SCSS
$custom: #6a38d6;
$custom-light: #9f74e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38d6",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 214
  },
  "hsl": {
    "h": 258.987,
    "s": 65.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50099,
    "c": 0.22373,
    "h": 290.4
  },
  "luminance": 0.10748
}

Semantic roles & 50–950 ramp

primary
#6A38D6
secondary
#C1D793
accent
#E93FB3
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6A38D6

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

Preview Lab → · Contrast checker → · Palette generator →

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