#6D38CA#6D38CA

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

Color values

HEX#6D38CA
RGBrgb(109, 56, 202)
HSLhsl(262, 58%, 51%)
HSVhsv(262, 72%, 79%)
CMYKcmyk(46%, 72.3%, 0%, 20.8%)
CIE-LABlab(38.45, 54.43, -67.21)
CIE-LCHlch(38.45, 86.48, 309.00°)
OKLaboklab(49.37% 0.085 -0.1926)
OKLCHoklch(49.37% 0.211 293.8)
XYZxyz(18.3786, 10.3433, 56.8938)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38CA #95CA38
analogous
#384CCA #6D38CA #B638CA
triadic
#6D38CA #CA6D38 #38CA6D
tetradic
#6D38CA #CA384C #95CA38 #38CAB6
square
#6D38CA #CA384C #95CA38 #38CAB6
split-complementary
#6D38CA #CAB638 #4CCA38
monochromatic
#391D6B #53299B #6D38CA #9068D7 #B499E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6D38CA#FFFFFF#000000##FFFFFF
##6D38CA1.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)
#005CCE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#525E7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6d38ca;
/* rgb */ color: rgb(109, 56, 202);
/* oklch */ color: oklch(49.4% 0.211 293.8);
Tailwind
colors: {
  custom: {
    50: '#9f73db',
    500: '#6d38ca',
    950: '#000000',
  },
}
SCSS
$custom: #6d38ca;
$custom-light: #9f73db;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38ca",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 261.781,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.49366,
    "c": 0.21051,
    "h": 293.8
  },
  "luminance": 0.10344
}

Semantic roles & 50–950 ramp

primary
#6D38CA
secondary
#B8CF8E
accent
#E147A9
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6D38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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