#6B38DA#6B38DA

#6B38DA is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.6% C 0.228 H 290.1°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6B38DA
RGBrgb(107, 56, 218)
HSLhsl(259, 69%, 54%)
HSVhsv(259, 74%, 85%)
CMYKcmyk(50.9%, 74.3%, 0%, 14.5%)
CIE-LABlab(39.61, 58.35, -74.56)
CIE-LCHlch(39.61, 94.68, 308.05°)
OKLaboklab(50.55% 0.0783 -0.2142)
OKLCHoklch(50.55% 0.228 290.1)
XYZxyz(20.1288, 11.0152, 67.3816)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38DA #A7DA38
analogous
#3856DA #6B38DA #BC38DA
triadic
#6B38DA #DA6B38 #38DA6B
tetradic
#6B38DA #DA3856 #A7DA38 #38DABC
square
#6B38DA #DA3856 #A7DA38 #38DABC
split-complementary
#6B38DA #DABC38 #56DA38
monochromatic
#391880 #4F21B3 #6B38DA #916CE4 #B89FED

Accessibility & contrast

On white

6.56
#6B38DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6B38DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B38DA
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38DA#FFFFFF#000000##FFFFFF
##6B38DA1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DF
Deuteranopia (green-blind)
#0059D7
Tritanopia (blue-blind)
#436487
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6b38da;
/* rgb */ color: rgb(107, 56, 218);
/* oklch */ color: oklch(50.6% 0.228 290.1);
Tailwind
colors: {
  custom: {
    50: '#a074e7',
    500: '#6b38da',
    950: '#000000',
  },
}
SCSS
$custom: #6b38da;
$custom-light: #a074e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38da",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 258.889,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50551,
    "c": 0.2281,
    "h": 290.1
  },
  "luminance": 0.11016
}

Semantic roles & 50–950 ramp

primary
#6B38DA
secondary
#C4DA94
accent
#EB3CB4
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6B38DA

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

Preview Lab → · Contrast checker → · Palette generator →

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