#6B38CD#6B38CD

#6B38CD is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.4% C 0.214 H 292.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#6B38CD
RGBrgb(107, 56, 205)
HSLhsl(261, 60%, 51%)
HSVhsv(261, 73%, 80%)
CMYKcmyk(47.8%, 72.7%, 0%, 19.6%)
CIE-LABlab(38.48, 54.89, -68.90)
CIE-LCHlch(38.48, 88.10, 308.54°)
OKLaboklab(49.42% 0.0814 -0.1976)
OKLCHoklch(49.42% 0.214 292.4)
XYZxyz(18.4939, 10.3613, 58.7713)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B38CD #9ACD38
analogous
#384FCD #6B38CD #B538CD
triadic
#6B38CD #CD6B38 #38CD6B
tetradic
#6B38CD #CD384F #9ACD38 #38CDB5
square
#6B38CD #CD384F #9ACD38 #38CDB5
split-complementary
#6B38CD #CDB538 #4FCD38
monochromatic
#381C6F #5128A0 #6B38CD #8F69D9 #B49AE6

Accessibility & contrast

On white

6.84
#6B38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6B38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B38CD
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B38CD#FFFFFF#000000##FFFFFF
##6B38CD1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#4C5F7F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6b38cd;
/* rgb */ color: rgb(107, 56, 205);
/* oklch */ color: oklch(49.4% 0.214 292.4);
Tailwind
colors: {
  custom: {
    50: '#9e73dd',
    500: '#6b38cd',
    950: '#000000',
  },
}
SCSS
$custom: #6b38cd;
$custom-light: #9e73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b38cd",
  "rgb": {
    "r": 107,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 260.537,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49416,
    "c": 0.21376,
    "h": 292.4
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

primary
#6B38CD
secondary
#BBD18F
accent
#E345AD
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6B38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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