#6B40E6#6B40E6

#6B40E6 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.6% C 0.233 H 287.3°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#6B40E6
RGBrgb(107, 64, 230)
HSLhsl(256, 77%, 58%)
HSVhsv(256, 72%, 90%)
CMYKcmyk(53.5%, 72.2%, 0%, 9.8%)
CIE-LABlab(42.01, 57.78, -77.47)
CIE-LCHlch(42.01, 96.64, 306.72°)
OKLaboklab(52.56% 0.0693 -0.2228)
OKLCHoklch(52.56% 0.233 287.3)
XYZxyz(22.1755, 12.5046, 76.0927)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40E6 #BBE640
analogous
#4068E6 #6B40E6 #BE40E6
triadic
#6B40E6 #E66B40 #40E66B
tetradic
#6B40E6 #E64068 #BBE640 #40E6BE
square
#6B40E6 #E64068 #BBE640 #40E6BE
split-complementary
#6B40E6 #E6BE40 #68E640
monochromatic
#361498 #491BCE #6B40E6 #9576ED #BFACF4

Accessibility & contrast

On white

6.00
#6B40E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#6B40E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40E6
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40E6#FFFFFF#000000##FFFFFF
##6B40E61.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EB
Deuteranopia (green-blind)
#005EE3
Tritanopia (blue-blind)
#386D8F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6b40e6;
/* rgb */ color: rgb(107, 64, 230);
/* oklch */ color: oklch(52.6% 0.233 287.3);
Tailwind
colors: {
  custom: {
    50: '#a179ef',
    500: '#6b40e6',
    950: '#000000',
  },
}
SCSS
$custom: #6b40e6;
$custom-light: #a179ef;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40e6",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 230
  },
  "hsl": {
    "h": 255.542,
    "s": 76.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52564,
    "c": 0.23334,
    "h": 287.3
  },
  "luminance": 0.12506
}

Semantic roles & 50–950 ramp

primary
#6B40E6
secondary
#D1E29F
accent
#F334C2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6B40E6

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

Preview Lab → · Contrast checker → · Palette generator →

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