#6B38D1#6B38D1

#6B38D1 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.8% C 0.218 H 291.7°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#6B38D1
RGBrgb(107, 56, 209)
HSLhsl(260, 62%, 52%)
HSVhsv(260, 73%, 82%)
CMYKcmyk(48.8%, 73.2%, 0%, 18%)
CIE-LABlab(38.82, 55.96, -70.66)
CIE-LCHlch(38.82, 90.13, 308.38°)
OKLaboklab(49.76% 0.0805 -0.2028)
OKLCHoklch(49.76% 0.218 291.7)
XYZxyz(18.9830, 10.5569, 61.3467)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38D1 #9ED138
analogous
#3852D1 #6B38D1 #B838D1
triadic
#6B38D1 #D16B38 #38D16B
tetradic
#6B38D1 #D13852 #9ED138 #38D1B8
square
#6B38D1 #D13852 #9ED138 #38D1B8
split-complementary
#6B38D1 #D1B838 #52D138
monochromatic
#381B74 #5126A6 #6B38D1 #906ADC #B59BE8

Accessibility & contrast

On white

6.75
#6B38D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6B38D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B38D1
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38D1#FFFFFF#000000##FFFFFF
##6B38D11.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b38d1;
/* rgb */ color: rgb(107, 56, 209);
/* oklch */ color: oklch(49.8% 0.218 291.7);
Tailwind
colors: {
  custom: {
    50: '#9f73e0',
    500: '#6b38d1',
    950: '#000000',
  },
}
SCSS
$custom: #6b38d1;
$custom-light: #9f73e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38d1",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 260,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49761,
    "c": 0.2182,
    "h": 291.7
  },
  "luminance": 0.10558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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