#6F40CA#6F40CA

#6F40CA is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.201 H 293.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#6F40CA
RGBrgb(111, 64, 202)
HSLhsl(260, 57%, 52%)
HSVhsv(260, 68%, 79%)
CMYKcmyk(45%, 68.3%, 0%, 20.8%)
CIE-LABlab(40.10, 50.79, -64.51)
CIE-LCHlch(40.10, 82.11, 308.21°)
OKLaboklab(50.59% 0.0803 -0.1846)
OKLCHoklch(50.59% 0.201 293.5)
XYZxyz(19.0467, 11.3100, 57.0452)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40CA #9BCA40
analogous
#4056CA #6F40CA #B440CA
triadic
#6F40CA #CA6F40 #40CA6F
tetradic
#6F40CA #CA4056 #9BCA40 #40CAB4
square
#6F40CA #CA4056 #9BCA40 #40CAB4
split-complementary
#6F40CA #CAB440 #56CA40
monochromatic
#3B1F70 #542CA0 #6F40CA #9370D7 #B7A0E5

Accessibility & contrast

On white

6.44
#6F40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6F40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40CA
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40CA#FFFFFF#000000##FFFFFF
##6F40CA1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#556280
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6f40ca;
/* rgb */ color: rgb(111, 64, 202);
/* oklch */ color: oklch(50.6% 0.201 293.5);
Tailwind
colors: {
  custom: {
    50: '#a078db',
    500: '#6f40ca',
    950: '#000000',
  },
}
SCSS
$custom: #6f40ca;
$custom-light: #a078db;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40ca",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 260.435,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50587,
    "c": 0.20136,
    "h": 293.5
  },
  "luminance": 0.11311
}

Semantic roles & 50–950 ramp

primary
#6F40CA
secondary
#BDD195
accent
#E048AC
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6F40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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