#6F42CA#6F42CA

#6F42CA is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.9% C 0.199 H 293.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#6F42CA
RGBrgb(111, 66, 202)
HSLhsl(260, 56%, 53%)
HSVhsv(260, 67%, 79%)
CMYKcmyk(45%, 67.3%, 0%, 20.8%)
CIE-LABlab(40.47, 49.75, -63.90)
CIE-LCHlch(40.47, 80.98, 307.91°)
OKLaboklab(50.86% 0.0784 -0.1828)
OKLCHoklch(50.86% 0.199 293.2)
XYZxyz(19.1615, 11.5396, 57.0834)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42CA #9DCA42
analogous
#4259CA #6F42CA #B342CA
triadic
#6F42CA #CA6F42 #42CA6F
tetradic
#6F42CA #CA4259 #9DCA42 #42CAB3
square
#6F42CA #CA4259 #9DCA42 #42CAB3
split-complementary
#6F42CA #CAB342 #59CA42
monochromatic
#3B2072 #542DA2 #6F42CA #9372D7 #B8A2E5

Accessibility & contrast

On white

6.35
#6F42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6F42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42CA
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42CA#FFFFFF#000000##FFFFFF
##6F42CA1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#005DC7
Tritanopia (blue-blind)
#556381
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6f42ca;
/* rgb */ color: rgb(111, 66, 202);
/* oklch */ color: oklch(50.9% 0.199 293.2);
Tailwind
colors: {
  custom: {
    50: '#a079db',
    500: '#6f42ca',
    950: '#000000',
  },
}
SCSS
$custom: #6f42ca;
$custom-light: #a079db;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42ca",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 259.853,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50857,
    "c": 0.19893,
    "h": 293.2
  },
  "luminance": 0.1154
}

Semantic roles & 50–950 ramp

primary
#6F42CA
secondary
#BED196
accent
#DF48AD
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6F42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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