#6D40B2#6D40B2

#6D40B2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.173 H 297.8°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6D40B2
RGBrgb(109, 64, 178)
HSLhsl(264, 47%, 47%)
HSVhsv(264, 64%, 70%)
CMYKcmyk(38.8%, 64%, 0%, 30.2%)
CIE-LABlab(38.08, 43.98, -53.74)
CIE-LCHlch(38.08, 69.44, 309.29°)
OKLaboklab(48.52% 0.0805 -0.153)
OKLCHoklch(48.52% 0.173 297.8)
XYZxyz(16.1739, 10.1321, 43.2144)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40B2 #85B240
analogous
#404CB2 #6D40B2 #A640B2
triadic
#6D40B2 #B26D40 #40B26D
tetradic
#6D40B2 #B2404C #85B240 #40B2A6
square
#6D40B2 #B2404C #85B240 #40B2A6
split-complementary
#6D40B2 #B2A640 #4CB240
monochromatic
#362058 #513085 #6D40B2 #8D67C8 #AF94D8

Accessibility & contrast

On white

6.94
#6D40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6D40B2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40B2#FFFFFF#000000##FFFFFF
##6D40B21.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#5D5A73
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6d40b2;
/* rgb */ color: rgb(109, 64, 178);
/* oklch */ color: oklch(48.5% 0.173 297.8);
Tailwind
colors: {
  custom: {
    50: '#9c77ca',
    500: '#6d40b2',
    950: '#000000',
  },
}
SCSS
$custom: #6d40b2;
$custom-light: #9c77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40b2",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 263.684,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48519,
    "c": 0.17294,
    "h": 297.8
  },
  "luminance": 0.10132
}

Semantic roles & 50–950 ramp

primary
#6D40B2
secondary
#ADC48A
accent
#D751A2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0913
muted
#7E7B82

Preview Lab

Preview with #6D40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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