#6B38BB#6B38BB

#6B38BB is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.9% C 0.194 H 296.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#6B38BB
RGBrgb(107, 56, 187)
HSLhsl(263, 54%, 48%)
HSVhsv(263, 70%, 73%)
CMYKcmyk(42.8%, 70.1%, 0%, 26.7%)
CIE-LABlab(37.01, 50.13, -60.80)
CIE-LCHlch(37.01, 78.81, 309.51°)
OKLaboklab(47.91% 0.0851 -0.1738)
OKLCHoklch(47.91% 0.194 296.1)
XYZxyz(16.4448, 9.5416, 47.9794)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38BB #88BB38
analogous
#3846BB #6B38BB #AC38BB
triadic
#6B38BB #BB6B38 #38BB6B
tetradic
#6B38BB #BB3846 #88BB38 #38BBAC
square
#6B38BB #BB3846 #88BB38 #38BBAC
split-complementary
#6B38BB #BBAC38 #46BB38
monochromatic
#351C5D #502A8C #6B38BB #8C61D0 #AE90DE

Accessibility & contrast

On white

7.22
#6B38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6B38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B38BB
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38BB#FFFFFF#000000##FFFFFF
##6B38BB1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b38bb;
/* rgb */ color: rgb(107, 56, 187);
/* oklch */ color: oklch(47.9% 0.194 296.1);
Tailwind
colors: {
  custom: {
    50: '#9c73d0',
    500: '#6b38bb',
    950: '#000000',
  },
}
SCSS
$custom: #6b38bb;
$custom-light: #9c73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38bb",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 263.359,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47911,
    "c": 0.19355,
    "h": 296.1
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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