#6F40CC#6F40CC

#6F40CC is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.204 H 293.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6F40CC
RGBrgb(111, 64, 204)
HSLhsl(260, 58%, 53%)
HSVhsv(260, 69%, 80%)
CMYKcmyk(45.6%, 68.6%, 0%, 20%)
CIE-LABlab(40.25, 51.33, -65.41)
CIE-LCHlch(40.25, 83.15, 308.12°)
OKLaboklab(50.75% 0.08 -0.1873)
OKLCHoklch(50.75% 0.204 293.1)
XYZxyz(19.2850, 11.4053, 58.3004)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40CC #9DCC40
analogous
#4057CC #6F40CC #B540CC
triadic
#6F40CC #CC6F40 #40CC6F
tetradic
#6F40CC #CC4057 #9DCC40 #40CCB5
square
#6F40CC #CC4057 #9DCC40 #40CCB5
split-complementary
#6F40CC #CCB540 #57CC40
monochromatic
#3B1F73 #542CA3 #6F40CC #9370D9 #B8A1E6

Accessibility & contrast

On white

6.40
#6F40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6F40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40CC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40CC#FFFFFF#000000##FFFFFF
##6F40CC1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#546381
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6f40cc;
/* rgb */ color: rgb(111, 64, 204);
/* oklch */ color: oklch(50.7% 0.204 293.1);
Tailwind
colors: {
  custom: {
    50: '#a078dd',
    500: '#6f40cc',
    950: '#000000',
  },
}
SCSS
$custom: #6f40cc;
$custom-light: #a078dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40cc",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 260.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50749,
    "c": 0.20368,
    "h": 293.1
  },
  "luminance": 0.11406
}

Semantic roles & 50–950 ramp

primary
#6F40CC
secondary
#BED295
accent
#E147AD
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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