#6B38BA#6B38BA

#6B38BA is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.8% C 0.192 H 296.3°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#6B38BA
RGBrgb(107, 56, 186)
HSLhsl(264, 54%, 47%)
HSVhsv(264, 70%, 73%)
CMYKcmyk(42.5%, 69.9%, 0%, 27.1%)
CIE-LABlab(36.93, 49.87, -60.34)
CIE-LCHlch(36.93, 78.28, 309.57°)
OKLaboklab(47.83% 0.0853 -0.1725)
OKLCHoklch(47.83% 0.192 296.3)
XYZxyz(16.3382, 9.4990, 47.4175)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38BA #87BA38
analogous
#3846BA #6B38BA #AC38BA
triadic
#6B38BA #BA6B38 #38BA6B
tetradic
#6B38BA #BA3846 #87BA38 #38BAAC
square
#6B38BA #BA3846 #87BA38 #38BAAC
split-complementary
#6B38BA #BAAC38 #46BA38
monochromatic
#351C5C #502A8B #6B38BA #8C60CF #AE8FDD

Accessibility & contrast

On white

7.24
#6B38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6B38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B38BA
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38BA#FFFFFF#000000##FFFFFF
##6B38BA1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0055B7
Tritanopia (blue-blind)
#565875
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6b38ba;
/* rgb */ color: rgb(107, 56, 186);
/* oklch */ color: oklch(47.8% 0.192 296.3);
Tailwind
colors: {
  custom: {
    50: '#9c73d0',
    500: '#6b38ba',
    950: '#000000',
  },
}
SCSS
$custom: #6b38ba;
$custom-light: #9c73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38ba",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 263.538,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4783,
    "c": 0.19242,
    "h": 296.3
  },
  "luminance": 0.09499
}

Semantic roles & 50–950 ramp

primary
#6B38BA
secondary
#AEC886
accent
#DD4BA4
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6B38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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