#6F40AF#6F40AF

#6F40AF is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.170 H 299.5°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#6F40AF
RGBrgb(111, 64, 175)
HSLhsl(265, 46%, 47%)
HSVhsv(265, 63%, 69%)
CMYKcmyk(36.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(38.09, 43.63, -51.92)
CIE-LCHlch(38.09, 67.82, 310.04°)
OKLaboklab(48.52% 0.0835 -0.1476)
OKLCHoklch(48.52% 0.17 299.5)
XYZxyz(16.1249, 10.1413, 41.6571)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40AF #80AF40
analogous
#4049AF #6F40AF #A740AF
triadic
#6F40AF #AF6F40 #40AF6F
tetradic
#6F40AF #AF4049 #80AF40 #40AFA7
square
#6F40AF #AF4049 #80AF40 #40AFA7
split-complementary
#6F40AF #AFA740 #49AF40
monochromatic
#361F55 #533082 #6F40AF #8F65C7 #AF92D7

Accessibility & contrast

On white

6.93
#6F40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6F40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40AF
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40AF#FFFFFF#000000##FFFFFF
##6F40AF1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0F59AD
Tritanopia (blue-blind)
#615871
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6f40af;
/* rgb */ color: rgb(111, 64, 175);
/* oklch */ color: oklch(48.5% 0.170 299.5);
Tailwind
colors: {
  custom: {
    50: '#9d77c8',
    500: '#6f40af',
    950: '#000000',
  },
}
SCSS
$custom: #6f40af;
$custom-light: #9d77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40af",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 265.405,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48515,
    "c": 0.16964,
    "h": 299.5
  },
  "luminance": 0.10141
}

Semantic roles & 50–950 ramp

primary
#6F40AF
secondary
#AAC388
accent
#D6529E
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #6F40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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