#6F40AE#6F40AE

#6F40AE is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.4% C 0.168 H 299.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#6F40AE
RGBrgb(111, 64, 174)
HSLhsl(266, 46%, 47%)
HSVhsv(266, 63%, 68%)
CMYKcmyk(36.2%, 63.2%, 0%, 31.8%)
CIE-LABlab(38.03, 43.37, -51.44)
CIE-LCHlch(38.03, 67.28, 310.13°)
OKLaboklab(48.44% 0.0836 -0.1462)
OKLCHoklch(48.44% 0.168 299.8)
XYZxyz(16.0271, 10.1021, 41.1417)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40AE #7FAE40
analogous
#4048AE #6F40AE #A640AE
triadic
#6F40AE #AE6F40 #40AE6F
tetradic
#6F40AE #AE4048 #7FAE40 #40AEA6
square
#6F40AE #AE4048 #7FAE40 #40AEA6
split-complementary
#6F40AE #AEA640 #48AE40
monochromatic
#361F55 #523081 #6F40AE #8F65C6 #AF92D7

Accessibility & contrast

On white

6.95
#6F40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6F40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40AE
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40AE#FFFFFF#000000##FFFFFF
##6F40AE1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#1259AC
Tritanopia (blue-blind)
#615871
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6f40ae;
/* rgb */ color: rgb(111, 64, 174);
/* oklch */ color: oklch(48.4% 0.168 299.8);
Tailwind
colors: {
  custom: {
    50: '#9d77c7',
    500: '#6f40ae',
    950: '#000000',
  },
}
SCSS
$custom: #6f40ae;
$custom-light: #9d77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40ae",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 265.636,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48443,
    "c": 0.16844,
    "h": 299.8
  },
  "luminance": 0.10102
}

Semantic roles & 50–950 ramp

primary
#6F40AE
secondary
#A9C288
accent
#D6529D
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #6F40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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