#6F40BD#6F40BD

#6F40BD is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.6% C 0.186 H 296.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#6F40BD
RGBrgb(111, 64, 189)
HSLhsl(263, 49%, 50%)
HSVhsv(263, 66%, 74%)
CMYKcmyk(41.3%, 66.1%, 0%, 25.9%)
CIE-LABlab(39.10, 47.32, -58.54)
CIE-LCHlch(39.10, 75.27, 308.94°)
OKLaboklab(49.56% 0.0822 -0.1671)
OKLCHoklch(49.56% 0.186 296.2)
XYZxyz(17.5718, 10.7201, 49.2776)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40BD #8EBD40
analogous
#4050BD #6F40BD #AE40BD
triadic
#6F40BD #BD6F40 #40BD6F
tetradic
#6F40BD #BD4050 #8EBD40 #40BDAE
square
#6F40BD #BD4050 #8EBD40 #40BDAE
split-complementary
#6F40BD #BDAE40 #50BD40
monochromatic
#392162 #54318F #6F40BD #916DCD #B39ADD

Accessibility & contrast

On white

6.68
#6F40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6F40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40BD
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40BD#FFFFFF#000000##FFFFFF
##6F40BD1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#5B5D79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6f40bd;
/* rgb */ color: rgb(111, 64, 189);
/* oklch */ color: oklch(49.6% 0.186 296.2);
Tailwind
colors: {
  custom: {
    50: '#9e78d2',
    500: '#6f40bd',
    950: '#000000',
  },
}
SCSS
$custom: #6f40bd;
$custom-light: #9e78d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40bd",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 262.56,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49564,
    "c": 0.18622,
    "h": 296.2
  },
  "luminance": 0.1072
}

Semantic roles & 50–950 ramp

primary
#6F40BD
secondary
#B3C990
accent
#D94FA5
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6F40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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