#6F40D3#6F40D3

#6F40D3 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.212 H 291.9°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6F40D3
RGBrgb(111, 64, 211)
HSLhsl(259, 63%, 54%)
HSVhsv(259, 70%, 83%)
CMYKcmyk(47.4%, 69.7%, 0%, 17.3%)
CIE-LABlab(40.81, 53.22, -68.54)
CIE-LCHlch(40.81, 86.78, 307.83°)
OKLaboklab(51.32% 0.0788 -0.1965)
OKLCHoklch(51.32% 0.212 291.9)
XYZxyz(20.1435, 11.7487, 62.8218)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40D3 #A4D340
analogous
#405BD3 #6F40D3 #B940D3
triadic
#6F40D3 #D36F40 #40D36F
tetradic
#6F40D3 #D3405B #A4D340 #40D3B9
square
#6F40D3 #D3405B #A4D340 #40D3B9
split-complementary
#6F40D3 #D3B940 #5BD340
monochromatic
#3B1D7C #5328AE #6F40D3 #9572DE #BAA3EA

Accessibility & contrast

On white

6.27
#6F40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6F40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40D3
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40D3#FFFFFF#000000##FFFFFF
##6F40D31.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#005DD0
Tritanopia (blue-blind)
#4F6585
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6f40d3;
/* rgb */ color: rgb(111, 64, 211);
/* oklch */ color: oklch(51.3% 0.212 291.9);
Tailwind
colors: {
  custom: {
    50: '#a178e2',
    500: '#6f40d3',
    950: '#000000',
  },
}
SCSS
$custom: #6f40d3;
$custom-light: #a178e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40d3",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 259.184,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51321,
    "c": 0.2117,
    "h": 291.9
  },
  "luminance": 0.11749
}

Semantic roles & 50–950 ramp

primary
#6F40D3
secondary
#C3D798
accent
#E642B1
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #6F40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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