#6D38DB#6D38DB

#6D38DB is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.8% C 0.229 H 290.7°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#6D38DB
RGBrgb(109, 56, 219)
HSLhsl(260, 69%, 54%)
HSVhsv(260, 74%, 86%)
CMYKcmyk(50.2%, 74.4%, 0%, 14.1%)
CIE-LABlab(39.90, 58.90, -74.64)
CIE-LCHlch(39.90, 95.08, 308.28°)
OKLaboklab(50.84% 0.081 -0.2144)
OKLCHoklch(50.84% 0.229 290.7)
XYZxyz(20.5034, 11.1932, 68.0843)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D38DB #A6DB38
analogous
#3855DB #6D38DB #BF38DB
triadic
#6D38DB #DB6D38 #38DB6D
tetradic
#6D38DB #DB3855 #A6DB38 #38DBBF
square
#6D38DB #DB3855 #A6DB38 #38DBBF
split-complementary
#6D38DB #DBBF38 #55DB38
monochromatic
#3A1781 #5121B5 #6D38DB #936CE4 #B9A0EE

Accessibility & contrast

On white

6.48
#6D38DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6D38DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D38DB
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D38DB#FFFFFF#000000##FFFFFF
##6D38DB1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E0
Deuteranopia (green-blind)
#005AD8
Tritanopia (blue-blind)
#476587
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6d38db;
/* rgb */ color: rgb(109, 56, 219);
/* oklch */ color: oklch(50.8% 0.229 290.7);
Tailwind
colors: {
  custom: {
    50: '#a174e7',
    500: '#6d38db',
    950: '#000000',
  },
}
SCSS
$custom: #6d38db;
$custom-light: #a174e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d38db",
  "rgb": {
    "r": 109,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 259.509,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50836,
    "c": 0.22917,
    "h": 290.7
  },
  "luminance": 0.11194
}

Semantic roles & 50–950 ramp

primary
#6D38DB
secondary
#C4DA95
accent
#EC3CB3
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D38DB

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

Preview Lab → · Contrast checker → · Palette generator →

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