#6F40D4#6F40D4

#6F40D4 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.213 H 291.7°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6F40D4
RGBrgb(111, 64, 212)
HSLhsl(259, 63%, 54%)
HSVhsv(259, 70%, 83%)
CMYKcmyk(47.6%, 69.8%, 0%, 16.9%)
CIE-LABlab(40.89, 53.49, -68.99)
CIE-LCHlch(40.89, 87.29, 307.79°)
OKLaboklab(51.4% 0.0786 -0.1978)
OKLCHoklch(51.4% 0.213 291.7)
XYZxyz(20.2693, 11.7990, 63.4841)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40D4 #A5D440
analogous
#405BD4 #6F40D4 #B940D4
triadic
#6F40D4 #D46F40 #40D46F
tetradic
#6F40D4 #D4405B #A5D440 #40D4B9
square
#6F40D4 #D4405B #A5D440 #40D4B9
split-complementary
#6F40D4 #D4B940 #5BD440
monochromatic
#3B1C7D #5327AF #6F40D4 #9572DF #BAA4EA

Accessibility & contrast

On white

6.25
#6F40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6F40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40D4
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40D4#FFFFFF#000000##FFFFFF
##6F40D41.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#005DD1
Tritanopia (blue-blind)
#4F6685
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6f40d4;
/* rgb */ color: rgb(111, 64, 212);
/* oklch */ color: oklch(51.4% 0.213 291.7);
Tailwind
colors: {
  custom: {
    50: '#a179e2',
    500: '#6f40d4',
    950: '#000000',
  },
}
SCSS
$custom: #6f40d4;
$custom-light: #a179e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40d4",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 259.054,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51404,
    "c": 0.21284,
    "h": 291.7
  },
  "luminance": 0.118
}

Semantic roles & 50–950 ramp

primary
#6F40D4
secondary
#C3D798
accent
#E642B2
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6F40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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