#6D38B2#6D38B2

#6D38B2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.4% C 0.184 H 299.1°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#6D38B2
RGBrgb(109, 56, 178)
HSLhsl(266, 52%, 46%)
HSVhsv(266, 69%, 70%)
CMYKcmyk(38.8%, 68.5%, 0%, 30.2%)
CIE-LABlab(36.54, 48.18, -56.23)
CIE-LCHlch(36.54, 74.04, 310.59°)
OKLaboklab(47.42% 0.0894 -0.1603)
OKLCHoklch(47.42% 0.184 299.1)
XYZxyz(15.7547, 9.2937, 43.0747)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38B2 #7DB238
analogous
#3840B2 #6D38B2 #AA38B2
triadic
#6D38B2 #B26D38 #38B26D
tetradic
#6D38B2 #B23840 #7DB238 #38B2AA
square
#6D38B2 #B23840 #7DB238 #38B2AA
split-complementary
#6D38B2 #B2AA38 #40B238
monochromatic
#341B55 #502983 #6D38B2 #8C5CCC #AD8ADA

Accessibility & contrast

On white

7.35
#6D38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6D38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D38B2
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D38B2#FFFFFF#000000##FFFFFF
##6D38B21.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#5D5570
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6d38b2;
/* rgb */ color: rgb(109, 56, 178);
/* oklch */ color: oklch(47.4% 0.184 299.1);
Tailwind
colors: {
  custom: {
    50: '#9c72ca',
    500: '#6d38b2',
    950: '#000000',
  },
}
SCSS
$custom: #6d38b2;
$custom-light: #9c72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38b2",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 266.066,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47415,
    "c": 0.18356,
    "h": 299.1
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#6D38B2
secondary
#A7C581
accent
#DC4C9D
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6D38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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