#6F40CF#6F40CF

#6F40CF is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.207 H 292.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6F40CF
RGBrgb(111, 64, 207)
HSLhsl(260, 60%, 53%)
HSVhsv(260, 69%, 81%)
CMYKcmyk(46.4%, 69.1%, 0%, 18.8%)
CIE-LABlab(40.49, 52.14, -66.76)
CIE-LCHlch(40.49, 84.71, 307.99°)
OKLaboklab(50.99% 0.0795 -0.1913)
OKLCHoklch(50.99% 0.207 292.6)
XYZxyz(19.6483, 11.5506, 60.2136)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40CF #A0CF40
analogous
#4058CF #6F40CF #B640CF
triadic
#6F40CF #CF6F40 #40CF6F
tetradic
#6F40CF #CF4058 #A0CF40 #40CFB6
square
#6F40CF #CF4058 #A0CF40 #40CFB6
split-complementary
#6F40CF #CFB640 #58CF40
monochromatic
#3B1E77 #532AA8 #6F40CF #9471DB #B9A2E8

Accessibility & contrast

On white

6.34
#6F40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6F40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40CF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40CF#FFFFFF#000000##FFFFFF
##6F40CF1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#526483
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6f40cf;
/* rgb */ color: rgb(111, 64, 207);
/* oklch */ color: oklch(51.0% 0.207 292.6);
Tailwind
colors: {
  custom: {
    50: '#a078df',
    500: '#6f40cf',
    950: '#000000',
  },
}
SCSS
$custom: #6f40cf;
$custom-light: #a078df;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40cf",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 259.72,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50993,
    "c": 0.20713,
    "h": 292.6
  },
  "luminance": 0.11551
}

Semantic roles & 50–950 ramp

primary
#6F40CF
secondary
#C0D497
accent
#E345AF
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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