#6F40C0#6F40C0

#6F40C0 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.190 H 295.5°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#6F40C0
RGBrgb(111, 64, 192)
HSLhsl(262, 50%, 50%)
HSVhsv(262, 67%, 75%)
CMYKcmyk(42.2%, 66.7%, 0%, 24.7%)
CIE-LABlab(39.33, 48.11, -59.94)
CIE-LCHlch(39.33, 76.86, 308.76°)
OKLaboklab(49.8% 0.0818 -0.1712)
OKLCHoklch(49.8% 0.19 295.5)
XYZxyz(17.9008, 10.8517, 51.0104)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40C0 #91C040
analogous
#4051C0 #6F40C0 #AF40C0
triadic
#6F40C0 #C06F40 #40C06F
tetradic
#6F40C0 #C04051 #91C040 #40C0AF
square
#6F40C0 #C04051 #91C040 #40C0AF
split-complementary
#6F40C0 #C0AF40 #51C040
monochromatic
#3A2164 #543092 #6F40C0 #926ECF #B49CDE

Accessibility & contrast

On white

6.62
#6F40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6F40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40C0
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40C0#FFFFFF#000000##FFFFFF
##6F40C01.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC4
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#5A5E7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f40c0;
/* rgb */ color: rgb(111, 64, 192);
/* oklch */ color: oklch(49.8% 0.190 295.5);
Tailwind
colors: {
  custom: {
    50: '#9f78d4',
    500: '#6f40c0',
    950: '#000000',
  },
}
SCSS
$custom: #6f40c0;
$custom-light: #9f78d4;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40c0",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 262.031,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49796,
    "c": 0.18974,
    "h": 295.5
  },
  "luminance": 0.10852
}

Semantic roles & 50–950 ramp

primary
#6F40C0
secondary
#B5CB91
accent
#DA4EA6
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6F40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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