#6D38C8#6D38C8

#6D38C8 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.208 H 294.2°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#6D38C8
RGBrgb(109, 56, 200)
HSLhsl(262, 57%, 50%)
HSVhsv(262, 72%, 78%)
CMYKcmyk(45.5%, 72%, 0%, 21.6%)
CIE-LABlab(38.29, 53.90, -66.31)
CIE-LCHlch(38.29, 85.46, 309.10°)
OKLaboklab(49.2% 0.0854 -0.19)
OKLCHoklch(49.2% 0.208 294.2)
XYZxyz(18.1433, 10.2492, 55.6547)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38C8 #93C838
analogous
#384BC8 #6D38C8 #B538C8
triadic
#6D38C8 #C86D38 #38C86D
tetradic
#6D38C8 #C8384B #93C838 #38C8B5
square
#6D38C8 #C8384B #93C838 #38C8B5
split-complementary
#6D38C8 #C8B538 #4BC838
monochromatic
#391D69 #532A99 #6D38C8 #9068D5 #B398E3

Accessibility & contrast

On white

6.89
#6D38C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6D38C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D38C8
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D38C8#FFFFFF#000000##FFFFFF
##6D38C81.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#535D7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6d38c8;
/* rgb */ color: rgb(109, 56, 200);
/* oklch */ color: oklch(49.2% 0.208 294.2);
Tailwind
colors: {
  custom: {
    50: '#9f73da',
    500: '#6d38c8',
    950: '#000000',
  },
}
SCSS
$custom: #6d38c8;
$custom-light: #9f73da;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38c8",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 262.083,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49198,
    "c": 0.20828,
    "h": 294.2
  },
  "luminance": 0.1025
}

Semantic roles & 50–950 ramp

primary
#6D38C8
secondary
#B6CE8E
accent
#E048A8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6D38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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