#6D40B3#6D40B3

#6D40B3 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.174 H 297.5°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6D40B3
RGBrgb(109, 64, 179)
HSLhsl(263, 47%, 48%)
HSVhsv(263, 64%, 70%)
CMYKcmyk(39.1%, 64.2%, 0%, 29.8%)
CIE-LABlab(38.15, 44.24, -54.22)
CIE-LCHlch(38.15, 69.98, 309.22°)
OKLaboklab(48.59% 0.0805 -0.1544)
OKLCHoklch(48.59% 0.174 297.5)
XYZxyz(16.2747, 10.1724, 43.7451)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40B3 #86B340
analogous
#404DB3 #6D40B3 #A640B3
triadic
#6D40B3 #B36D40 #40B36D
tetradic
#6D40B3 #B3404D #86B340 #40B3A6
square
#6D40B3 #B3404D #86B340 #40B3A6
split-complementary
#6D40B3 #B3A640 #4DB340
monochromatic
#362059 #523086 #6D40B3 #8E67C9 #AF94D9

Accessibility & contrast

On white

6.92
#6D40B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6D40B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40B3
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40B3#FFFFFF#000000##FFFFFF
##6D40B31.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#5C5A74
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6d40b3;
/* rgb */ color: rgb(109, 64, 179);
/* oklch */ color: oklch(48.6% 0.174 297.5);
Tailwind
colors: {
  custom: {
    50: '#9c77ca',
    500: '#6d40b3',
    950: '#000000',
  },
}
SCSS
$custom: #6d40b3;
$custom-light: #9c77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40b3",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 263.478,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48594,
    "c": 0.17414,
    "h": 297.5
  },
  "luminance": 0.10173
}

Semantic roles & 50–950 ramp

primary
#6D40B3
secondary
#AEC48A
accent
#D751A2
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #6D40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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