#6F40CE#6F40CE

#6F40CE is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.206 H 292.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#6F40CE
RGBrgb(111, 64, 206)
HSLhsl(260, 59%, 53%)
HSVhsv(260, 69%, 81%)
CMYKcmyk(46.1%, 68.9%, 0%, 19.2%)
CIE-LABlab(40.41, 51.87, -66.31)
CIE-LCHlch(40.41, 84.19, 308.03°)
OKLaboklab(50.91% 0.0797 -0.1899)
OKLCHoklch(50.91% 0.206 292.8)
XYZxyz(19.5264, 11.5019, 59.5718)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40CE #9FCE40
analogous
#4058CE #6F40CE #B640CE
triadic
#6F40CE #CE6F40 #40CE6F
tetradic
#6F40CE #CE4058 #9FCE40 #40CEB6
square
#6F40CE #CE4058 #9FCE40 #40CEB6
split-complementary
#6F40CE #CEB640 #58CE40
monochromatic
#3B1E75 #542BA6 #6F40CE #9471DA #B8A1E7

Accessibility & contrast

On white

6.36
#6F40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6F40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40CE
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40CE#FFFFFF#000000##FFFFFF
##6F40CE1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#526482
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6f40ce;
/* rgb */ color: rgb(111, 64, 206);
/* oklch */ color: oklch(50.9% 0.206 292.8);
Tailwind
colors: {
  custom: {
    50: '#a078de',
    500: '#6f40ce',
    950: '#000000',
  },
}
SCSS
$custom: #6f40ce;
$custom-light: #a078de;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40ce",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 259.859,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50911,
    "c": 0.20598,
    "h": 292.8
  },
  "luminance": 0.11503
}

Semantic roles & 50–950 ramp

primary
#6F40CE
secondary
#BFD496
accent
#E245AE
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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