#6F40B2#6F40B2

#6F40B2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.173 H 298.7°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#6F40B2
RGBrgb(111, 64, 178)
HSLhsl(265, 47%, 47%)
HSVhsv(265, 64%, 70%)
CMYKcmyk(37.6%, 64%, 0%, 30.2%)
CIE-LABlab(38.31, 44.41, -53.36)
CIE-LCHlch(38.31, 69.42, 309.77°)
OKLaboklab(48.74% 0.0833 -0.1519)
OKLCHoklch(48.74% 0.173 298.7)
XYZxyz(16.4228, 10.2605, 43.2261)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40B2 #83B240
analogous
#404AB2 #6F40B2 #A840B2
triadic
#6F40B2 #B26F40 #40B26F
tetradic
#6F40B2 #B2404A #83B240 #40B2A8
square
#6F40B2 #B2404A #83B240 #40B2A8
split-complementary
#6F40B2 #B2A840 #4AB240
monochromatic
#372058 #533085 #6F40B2 #8F67C8 #B094D8

Accessibility & contrast

On white

6.88
#6F40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6F40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40B2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40B2#FFFFFF#000000##FFFFFF
##6F40B21.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0359B0
Tritanopia (blue-blind)
#605973
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6f40b2;
/* rgb */ color: rgb(111, 64, 178);
/* oklch */ color: oklch(48.7% 0.173 298.7);
Tailwind
colors: {
  custom: {
    50: '#9d77ca',
    500: '#6f40b2',
    950: '#000000',
  },
}
SCSS
$custom: #6f40b2;
$custom-light: #9d77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40b2",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 264.737,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48735,
    "c": 0.17321,
    "h": 298.7
  },
  "luminance": 0.10261
}

Semantic roles & 50–950 ramp

primary
#6F40B2
secondary
#ACC48A
accent
#D751A0
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #6F40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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