#6B40ED#6B40ED

#6B40ED is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.2% C 0.241 H 286.3°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#6B40ED
RGBrgb(107, 64, 237)
HSLhsl(255, 83%, 59%)
HSVhsv(255, 73%, 93%)
CMYKcmyk(54.9%, 73%, 0%, 7.1%)
CIE-LABlab(42.62, 59.70, -80.43)
CIE-LCHlch(42.62, 100.17, 306.59°)
OKLaboklab(53.19% 0.0677 -0.2315)
OKLCHoklch(53.19% 0.241 286.3)
XYZxyz(23.1783, 12.9057, 81.3741)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40ED #C2ED40
analogous
#406CED #6B40ED #C140ED
triadic
#6B40ED #ED6B40 #40ED6B
tetradic
#6B40ED #ED406C #C2ED40 #40EDC1
square
#6B40ED #ED406C #C2ED40 #40EDC1
split-complementary
#6B40ED #EDC140 #6CED40
monochromatic
#340FA3 #4615DB #6B40ED #9678F2 #C2B0F8

Accessibility & contrast

On white

5.86
#6B40ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6B40ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40ED
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40ED#FFFFFF#000000##FFFFFF
##6B40ED1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F2
Deuteranopia (green-blind)
#0060EA
Tritanopia (blue-blind)
#307093
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6b40ed;
/* rgb */ color: rgb(107, 64, 237);
/* oklch */ color: oklch(53.2% 0.241 286.3);
Tailwind
colors: {
  custom: {
    50: '#a279f4',
    500: '#6b40ed',
    950: '#000000',
  },
}
SCSS
$custom: #6b40ed;
$custom-light: #a279f4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40ed",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 237
  },
  "hsl": {
    "h": 254.913,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53185,
    "c": 0.24117,
    "h": 286.3
  },
  "luminance": 0.12907
}

Semantic roles & 50–950 ramp

primary
#6B40ED
secondary
#D5E6A2
accent
#F92FC7
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6B40ED

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

Preview Lab → · Contrast checker → · Palette generator →

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