#6D38B4#6D38B4

#6D38B4 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.186 H 298.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#6D38B4
RGBrgb(109, 56, 180)
HSLhsl(266, 53%, 46%)
HSVhsv(266, 69%, 71%)
CMYKcmyk(39.4%, 68.9%, 0%, 29.4%)
CIE-LABlab(36.70, 48.69, -57.17)
CIE-LCHlch(36.70, 75.09, 310.42°)
OKLaboklab(47.57% 0.0891 -0.1631)
OKLCHoklch(47.57% 0.186 298.6)
XYZxyz(15.9570, 9.3746, 44.1400)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38B4 #7FB438
analogous
#3841B4 #6D38B4 #AB38B4
triadic
#6D38B4 #B46D38 #38B46D
tetradic
#6D38B4 #B43841 #7FB438 #38B4AB
square
#6D38B4 #B43841 #7FB438 #38B4AB
split-complementary
#6D38B4 #B4AB38 #41B438
monochromatic
#341B57 #512985 #6D38B4 #8C5DCD #AD8BDB

Accessibility & contrast

On white

7.30
#6D38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6D38B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D38B4
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D38B4#FFFFFF#000000##FFFFFF
##6D38B41.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#5C5672
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6d38b4;
/* rgb */ color: rgb(109, 56, 180);
/* oklch */ color: oklch(47.6% 0.186 298.6);
Tailwind
colors: {
  custom: {
    50: '#9d73cb',
    500: '#6d38b4',
    950: '#000000',
  },
}
SCSS
$custom: #6d38b4;
$custom-light: #9d73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38b4",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 265.645,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47571,
    "c": 0.18583,
    "h": 298.6
  },
  "luminance": 0.09375
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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