#6B38B3#6B38B3

#6B38B3 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.3% C 0.184 H 297.9°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#6B38B3
RGBrgb(107, 56, 179)
HSLhsl(265, 52%, 46%)
HSVhsv(265, 69%, 70%)
CMYKcmyk(40.2%, 68.7%, 0%, 29.8%)
CIE-LABlab(36.38, 48.04, -57.09)
CIE-LCHlch(36.38, 74.61, 310.08°)
OKLaboklab(47.27% 0.0864 -0.1629)
OKLCHoklch(47.27% 0.184 297.9)
XYZxyz(15.6122, 9.2086, 43.5940)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38B3 #80B338
analogous
#3842B3 #6B38B3 #A838B3
triadic
#6B38B3 #B36B38 #38B36B
tetradic
#6B38B3 #B33842 #80B338 #38B3A8
square
#6B38B3 #B33842 #80B338 #38B3A8
split-complementary
#6B38B3 #B3A838 #42B338
monochromatic
#331B56 #4F2984 #6B38B3 #8B5CCC #AC8BDB

Accessibility & contrast

On white

7.39
#6B38B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6B38B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B38B3
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38B3#FFFFFF#000000##FFFFFF
##6B38B31.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#595571
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6b38b3;
/* rgb */ color: rgb(107, 56, 179);
/* oklch */ color: oklch(47.3% 0.184 297.9);
Tailwind
colors: {
  custom: {
    50: '#9b72cb',
    500: '#6b38b3',
    950: '#000000',
  },
}
SCSS
$custom: #6b38b3;
$custom-light: #9b72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38b3",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 264.878,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4727,
    "c": 0.18443,
    "h": 297.9
  },
  "luminance": 0.09209
}

Semantic roles & 50–950 ramp

primary
#6B38B3
secondary
#A9C582
accent
#DC4CA0
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6B38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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