#6F40CD#6F40CD

#6F40CD is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.8% C 0.205 H 292.9°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#6F40CD
RGBrgb(111, 64, 205)
HSLhsl(260, 59%, 53%)
HSVhsv(260, 69%, 80%)
CMYKcmyk(45.9%, 68.8%, 0%, 19.6%)
CIE-LABlab(40.33, 51.60, -65.86)
CIE-LCHlch(40.33, 83.67, 308.08°)
OKLaboklab(50.83% 0.0799 -0.1886)
OKLCHoklch(50.83% 0.205 292.9)
XYZxyz(19.4053, 11.4535, 58.9341)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40CD #9ECD40
analogous
#4057CD #6F40CD #B540CD
triadic
#6F40CD #CD6F40 #40CD6F
tetradic
#6F40CD #CD4057 #9ECD40 #40CDB5
square
#6F40CD #CD4057 #9ECD40 #40CDB5
split-complementary
#6F40CD #CDB540 #57CD40
monochromatic
#3B1E74 #542BA5 #6F40CD #9471DA #B8A1E6

Accessibility & contrast

On white

6.38
#6F40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6F40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40CD
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40CD#FFFFFF#000000##FFFFFF
##6F40CD1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#005CCA
Tritanopia (blue-blind)
#536382
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6f40cd;
/* rgb */ color: rgb(111, 64, 205);
/* oklch */ color: oklch(50.8% 0.205 292.9);
Tailwind
colors: {
  custom: {
    50: '#a078dd',
    500: '#6f40cd',
    950: '#000000',
  },
}
SCSS
$custom: #6f40cd;
$custom-light: #a078dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40cd",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 260,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5083,
    "c": 0.20483,
    "h": 292.9
  },
  "luminance": 0.11454
}

Semantic roles & 50–950 ramp

primary
#6F40CD
secondary
#BFD396
accent
#E246AE
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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