#6D38AB#6D38AB

#6D38AB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.9% C 0.176 H 301.0°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#6D38AB
RGBrgb(109, 56, 171)
HSLhsl(268, 51%, 45%)
HSVhsv(268, 67%, 67%)
CMYKcmyk(36.3%, 67.3%, 0%, 32.9%)
CIE-LABlab(36.02, 46.39, -52.91)
CIE-LCHlch(36.02, 70.36, 311.24°)
OKLaboklab(46.88% 0.0903 -0.1506)
OKLCHoklch(46.88% 0.176 301)
XYZxyz(15.0698, 9.0197, 39.4672)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38AB #76AB38
analogous
#383DAB #6D38AB #A738AB
triadic
#6D38AB #AB6D38 #38AB6D
tetradic
#6D38AB #AB383D #76AB38 #38ABA7
square
#6D38AB #AB383D #76AB38 #38ABA7
split-complementary
#6D38AB #ABA738 #3DAB38
monochromatic
#321A4F #50297D #6D38AB #8C58C8 #AC86D7

Accessibility & contrast

On white

7.49
#6D38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6D38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D38AB
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D38AB#FFFFFF#000000##FFFFFF
##6D38AB1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#60526D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6d38ab;
/* rgb */ color: rgb(109, 56, 171);
/* oklch */ color: oklch(46.9% 0.176 301.0);
Tailwind
colors: {
  custom: {
    50: '#9c72c5',
    500: '#6d38ab',
    950: '#000000',
  },
}
SCSS
$custom: #6d38ab;
$custom-light: #9c72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38ab",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 267.652,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46877,
    "c": 0.17558,
    "h": 301
  },
  "luminance": 0.0902
}

Semantic roles & 50–950 ramp

primary
#6D38AB
secondary
#A2C17D
accent
#DA4E99
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6D38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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