#6B40CA#6B40CA

#6B40CA is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.2% C 0.201 H 291.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#6B40CA
RGBrgb(107, 64, 202)
HSLhsl(259, 57%, 52%)
HSVhsv(259, 68%, 79%)
CMYKcmyk(47%, 68.3%, 0%, 20.8%)
CIE-LABlab(39.67, 50.07, -65.22)
CIE-LCHlch(39.67, 82.22, 307.52°)
OKLaboklab(50.19% 0.0747 -0.1869)
OKLCHoklch(50.19% 0.201 291.8)
XYZxyz(18.5545, 11.0562, 57.0221)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40CA #9FCA40
analogous
#405ACA #6B40CA #B040CA
triadic
#6B40CA #CA6B40 #40CA6B
tetradic
#6B40CA #CA405A #9FCA40 #40CAB0
square
#6B40CA #CA405A #9FCA40 #40CAB0
split-complementary
#6B40CA #CAB040 #5ACA40
monochromatic
#381F70 #512CA0 #6B40CA #9070D7 #B5A0E5

Accessibility & contrast

On white

6.54
#6B40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6B40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40CA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40CA#FFFFFF#000000##FFFFFF
##6B40CA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#4D6280
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6b40ca;
/* rgb */ color: rgb(107, 64, 202);
/* oklch */ color: oklch(50.2% 0.201 291.8);
Tailwind
colors: {
  custom: {
    50: '#9d78db',
    500: '#6b40ca',
    950: '#000000',
  },
}
SCSS
$custom: #6b40ca;
$custom-light: #9d78db;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40ca",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 258.696,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50187,
    "c": 0.20125,
    "h": 291.8
  },
  "luminance": 0.11057
}

Semantic roles & 50–950 ramp

primary
#6B40CA
secondary
#BED195
accent
#E048B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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