#6F40BB#6F40BB

#6F40BB is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.184 H 296.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#6F40BB
RGBrgb(111, 64, 187)
HSLhsl(263, 49%, 49%)
HSVhsv(263, 66%, 73%)
CMYKcmyk(40.6%, 65.8%, 0%, 26.7%)
CIE-LABlab(38.96, 46.78, -57.61)
CIE-LCHlch(38.96, 74.22, 309.08°)
OKLaboklab(49.41% 0.0824 -0.1644)
OKLCHoklch(49.41% 0.184 296.6)
XYZxyz(17.3562, 10.6338, 48.1422)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40BB #8CBB40
analogous
#404FBB #6F40BB #AD40BB
triadic
#6F40BB #BB6F40 #40BB6F
tetradic
#6F40BB #BB404F #8CBB40 #40BBAD
square
#6F40BB #BB404F #8CBB40 #40BBAD
split-complementary
#6F40BB #BBAD40 #4FBB40
monochromatic
#392160 #54308D #6F40BB #916CCD #B399DC

Accessibility & contrast

On white

6.72
#6F40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6F40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40BB
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40BB#FFFFFF#000000##FFFFFF
##6F40BB1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#5C5D78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6f40bb;
/* rgb */ color: rgb(111, 64, 187);
/* oklch */ color: oklch(49.4% 0.184 296.6);
Tailwind
colors: {
  custom: {
    50: '#9e78d0',
    500: '#6f40bb',
    950: '#000000',
  },
}
SCSS
$custom: #6f40bb;
$custom-light: #9e78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40bb",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 262.927,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49411,
    "c": 0.18387,
    "h": 296.6
  },
  "luminance": 0.10634
}

Semantic roles & 50–950 ramp

primary
#6F40BB
secondary
#B2C88F
accent
#D94FA4
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6F40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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