#6F40D2#6F40D2

#6F40D2 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.211 H 292.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6F40D2
RGBrgb(111, 64, 210)
HSLhsl(259, 62%, 54%)
HSVhsv(259, 70%, 82%)
CMYKcmyk(47.1%, 69.5%, 0%, 17.6%)
CIE-LABlab(40.73, 52.95, -68.10)
CIE-LCHlch(40.73, 86.26, 307.86°)
OKLaboklab(51.24% 0.079 -0.1952)
OKLCHoklch(51.24% 0.211 292)
XYZxyz(20.0185, 11.6987, 62.1636)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40D2 #A3D240
analogous
#405AD2 #6F40D2 #B840D2
triadic
#6F40D2 #D26F40 #40D26F
tetradic
#6F40D2 #D2405A #A3D240 #40D2B8
square
#6F40D2 #D2405A #A3D240 #40D2B8
split-complementary
#6F40D2 #D2B840 #5AD240
monochromatic
#3B1D7B #5329AC #6F40D2 #9472DE #BAA3E9

Accessibility & contrast

On white

6.29
#6F40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6F40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40D2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40D2#FFFFFF#000000##FFFFFF
##6F40D21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#506584
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6f40d2;
/* rgb */ color: rgb(111, 64, 210);
/* oklch */ color: oklch(51.2% 0.211 292.0);
Tailwind
colors: {
  custom: {
    50: '#a178e1',
    500: '#6f40d2',
    950: '#000000',
  },
}
SCSS
$custom: #6f40d2;
$custom-light: #a178e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40d2",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 259.315,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51239,
    "c": 0.21056,
    "h": 292
  },
  "luminance": 0.11699
}

Semantic roles & 50–950 ramp

primary
#6F40D2
secondary
#C2D698
accent
#E543B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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