#6D38C2#6D38C2

#6D38C2 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.7% C 0.202 H 295.4°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#6D38C2
RGBrgb(109, 56, 194)
HSLhsl(263, 55%, 49%)
HSVhsv(263, 71%, 76%)
CMYKcmyk(43.8%, 71.1%, 0%, 23.9%)
CIE-LABlab(37.80, 52.33, -63.61)
CIE-LCHlch(37.80, 82.37, 309.44°)
OKLaboklab(48.7% 0.0866 -0.182)
OKLCHoklch(48.7% 0.202 295.4)
XYZxyz(17.4558, 9.9742, 52.0340)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38C2 #8DC238
analogous
#3848C2 #6D38C2 #B238C2
triadic
#6D38C2 #C26D38 #38C26D
tetradic
#6D38C2 #C23848 #8DC238 #38C2B2
square
#6D38C2 #C23848 #8DC238 #38C2B2
split-complementary
#6D38C2 #C2B238 #48C238
monochromatic
#381D63 #522A93 #6D38C2 #8F65D2 #B194E0

Accessibility & contrast

On white

7.01
#6D38C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6D38C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D38C2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D38C2#FFFFFF#000000##FFFFFF
##6D38C21.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#565B79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6d38c2;
/* rgb */ color: rgb(109, 56, 194);
/* oklch */ color: oklch(48.7% 0.202 295.4);
Tailwind
colors: {
  custom: {
    50: '#9e73d5',
    500: '#6d38c2',
    950: '#000000',
  },
}
SCSS
$custom: #6d38c2;
$custom-light: #9e73d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38c2",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 263.043,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48698,
    "c": 0.2016,
    "h": 295.4
  },
  "luminance": 0.09975
}

Semantic roles & 50–950 ramp

primary
#6D38C2
secondary
#B2CB8A
accent
#DF49A5
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6D38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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