#6F40D0#6F40D0

#6F40D0 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.1% C 0.208 H 292.4°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#6F40D0
RGBrgb(111, 64, 208)
HSLhsl(260, 61%, 53%)
HSVhsv(260, 69%, 82%)
CMYKcmyk(46.6%, 69.2%, 0%, 18.4%)
CIE-LABlab(40.57, 52.41, -67.21)
CIE-LCHlch(40.57, 85.23, 307.95°)
OKLaboklab(51.07% 0.0793 -0.1926)
OKLCHoklch(51.07% 0.208 292.4)
XYZxyz(19.7709, 11.5997, 60.8595)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40D0 #A1D040
analogous
#4059D0 #6F40D0 #B740D0
triadic
#6F40D0 #D06F40 #40D06F
tetradic
#6F40D0 #D04059 #A1D040 #40D0B7
square
#6F40D0 #D04059 #A1D040 #40D0B7
split-complementary
#6F40D0 #D0B740 #59D040
monochromatic
#3B1E78 #532AA9 #6F40D0 #9471DC #B9A2E8

Accessibility & contrast

On white

6.33
#6F40D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#6F40D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40D0
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40D0#FFFFFF#000000##FFFFFF
##6F40D01.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D4
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#516483
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6f40d0;
/* rgb */ color: rgb(111, 64, 208);
/* oklch */ color: oklch(51.1% 0.208 292.4);
Tailwind
colors: {
  custom: {
    50: '#a078df',
    500: '#6f40d0',
    950: '#000000',
  },
}
SCSS
$custom: #6f40d0;
$custom-light: #a078df;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40d0",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 259.583,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51074,
    "c": 0.20827,
    "h": 292.4
  },
  "luminance": 0.116
}

Semantic roles & 50–950 ramp

primary
#6F40D0
secondary
#C1D597
accent
#E444B0
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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