#6B38AB#6B38AB

#6B38AB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.175 H 300.0°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#6B38AB
RGBrgb(107, 56, 171)
HSLhsl(267, 51%, 45%)
HSVhsv(267, 67%, 67%)
CMYKcmyk(37.4%, 67.3%, 0%, 32.9%)
CIE-LABlab(35.78, 45.97, -53.31)
CIE-LCHlch(35.78, 70.39, 310.77°)
OKLaboklab(46.65% 0.0875 -0.1518)
OKLCHoklch(46.65% 0.175 300)
XYZxyz(14.8265, 8.8943, 39.4558)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38AB #78AB38
analogous
#383EAB #6B38AB #A538AB
triadic
#6B38AB #AB6B38 #38AB6B
tetradic
#6B38AB #AB383E #78AB38 #38ABA5
square
#6B38AB #AB383E #78AB38 #38ABA5
split-complementary
#6B38AB #ABA538 #3EAB38
monochromatic
#311A4F #4E297D #6B38AB #8A58C8 #AA86D7

Accessibility & contrast

On white

7.56
#6B38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#6B38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B38AB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38AB#FFFFFF#000000##FFFFFF
##6B38AB1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#5D526D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6b38ab;
/* rgb */ color: rgb(107, 56, 171);
/* oklch */ color: oklch(46.6% 0.175 300.0);
Tailwind
colors: {
  custom: {
    50: '#9a72c5',
    500: '#6b38ab',
    950: '#000000',
  },
}
SCSS
$custom: #6b38ab;
$custom-light: #9a72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38ab",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 266.609,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46649,
    "c": 0.17524,
    "h": 300
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#6B38AB
secondary
#A3C17D
accent
#DA4E9C
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6B38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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