#6F42C8#6F42C8

#6F42C8 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.197 H 293.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#6F42C8
RGBrgb(111, 66, 200)
HSLhsl(260, 55%, 52%)
HSVhsv(260, 67%, 78%)
CMYKcmyk(44.5%, 67%, 0%, 21.6%)
CIE-LABlab(40.32, 49.21, -62.99)
CIE-LCHlch(40.32, 79.93, 308.00°)
OKLaboklab(50.7% 0.0787 -0.1802)
OKLCHoklch(50.7% 0.197 293.6)
XYZxyz(18.9262, 11.4455, 55.8444)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42C8 #9BC842
analogous
#4258C8 #6F42C8 #B242C8
triadic
#6F42C8 #C86F42 #42C86F
tetradic
#6F42C8 #C84258 #9BC842 #42C8B2
square
#6F42C8 #C84258 #9BC842 #42C8B2
split-complementary
#6F42C8 #C8B242 #58C842
monochromatic
#3B206F #542E9F #6F42C8 #9371D6 #B7A1E4

Accessibility & contrast

On white

6.38
#6F42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6F42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42C8
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42C8#FFFFFF#000000##FFFFFF
##6F42C81.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#56637F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6f42c8;
/* rgb */ color: rgb(111, 66, 200);
/* oklch */ color: oklch(50.7% 0.197 293.6);
Tailwind
colors: {
  custom: {
    50: '#9f79da',
    500: '#6f42c8',
    950: '#000000',
  },
}
SCSS
$custom: #6f42c8;
$custom-light: #9f79da;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42c8",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 260.149,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50699,
    "c": 0.19659,
    "h": 293.6
  },
  "luminance": 0.11446
}

Semantic roles & 50–950 ramp

primary
#6F42C8
secondary
#BDD096
accent
#DE4AAC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6F42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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