#6F40CB#6F40CB

#6F40CB is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.203 H 293.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#6F40CB
RGBrgb(111, 64, 203)
HSLhsl(260, 57%, 52%)
HSVhsv(260, 68%, 80%)
CMYKcmyk(45.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(40.18, 51.06, -64.96)
CIE-LCHlch(40.18, 82.63, 308.17°)
OKLaboklab(50.67% 0.0802 -0.186)
OKLCHoklch(50.67% 0.203 293.3)
XYZxyz(19.1655, 11.3575, 57.6708)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F40CB #9CCB40
analogous
#4056CB #6F40CB #B540CB
triadic
#6F40CB #CB6F40 #40CB6F
tetradic
#6F40CB #CB4056 #9CCB40 #40CBB5
square
#6F40CB #CB4056 #9CCB40 #40CBB5
split-complementary
#6F40CB #CBB540 #56CB40
monochromatic
#3B1F72 #542CA2 #6F40CB #9370D8 #B8A0E5

Accessibility & contrast

On white

6.42
#6F40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6F40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F40CB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F40CB#FFFFFF#000000##FFFFFF
##6F40CB1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#546280
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6f40cb;
/* rgb */ color: rgb(111, 64, 203);
/* oklch */ color: oklch(50.7% 0.203 293.3);
Tailwind
colors: {
  custom: {
    50: '#a078dc',
    500: '#6f40cb',
    950: '#000000',
  },
}
SCSS
$custom: #6f40cb;
$custom-light: #a078dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6f40cb",
  "rgb": {
    "r": 111,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 260.288,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50668,
    "c": 0.20252,
    "h": 293.3
  },
  "luminance": 0.11358
}

Semantic roles & 50–950 ramp

primary
#6F40CB
secondary
#BDD295
accent
#E047AD
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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