#6F40C8#6F40C8

#6F40C8 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.4% C 0.199 H 293.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#6F40C8
RGBrgb(111, 64, 200)
HSLhsl(261, 55%, 52%)
HSVhsv(261, 68%, 78%)
CMYKcmyk(44.5%, 68%, 0%, 21.6%)
CIE-LABlab(39.94, 50.25, -63.60)
CIE-LCHlch(39.94, 81.06, 308.31°)
OKLaboklab(50.43% 0.0807 -0.182)
OKLCHoklch(50.43% 0.199 293.9)
XYZxyz(18.8114, 11.2159, 55.8061)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40C8 #99C840
analogous
#4055C8 #6F40C8 #B340C8
triadic
#6F40C8 #C86F40 #40C86F
tetradic
#6F40C8 #C84055 #99C840 #40C8B3
square
#6F40C8 #C84055 #99C840 #40C8B3
split-complementary
#6F40C8 #C8B340 #55C840
monochromatic
#3B206E #542D9D #6F40C8 #9370D6 #B79FE3

Accessibility & contrast

On white

6.48
#6F40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6F40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40C8
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40C8#FFFFFF#000000##FFFFFF
##6F40C81.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#56617F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6f40c8;
/* rgb */ color: rgb(111, 64, 200);
/* oklch */ color: oklch(50.4% 0.199 293.9);
Tailwind
colors: {
  custom: {
    50: '#9f78da',
    500: '#6f40c8',
    950: '#000000',
  },
}
SCSS
$custom: #6f40c8;
$custom-light: #9f78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40c8",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 260.735,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50427,
    "c": 0.19905,
    "h": 293.9
  },
  "luminance": 0.11216
}

Semantic roles & 50–950 ramp

primary
#6F40C8
secondary
#BBD094
accent
#DF49AB
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6F40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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