#6F42E1#6F42E1

#6F42E1 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.225 H 289.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#6F42E1
RGBrgb(111, 66, 225)
HSLhsl(257, 73%, 57%)
HSVhsv(257, 71%, 88%)
CMYKcmyk(50.7%, 70.7%, 0%, 11.8%)
CIE-LABlab(42.32, 56.01, -74.09)
CIE-LCHlch(42.32, 92.88, 307.09°)
OKLaboklab(52.75% 0.0744 -0.2128)
OKLCHoklch(52.75% 0.225 289.3)
XYZxyz(22.0904, 12.7112, 72.5091)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42E1 #B4E142
analogous
#4265E1 #6F42E1 #BF42E1
triadic
#6F42E1 #E16F42 #42E16F
tetradic
#6F42E1 #E14265 #B4E142 #42E1BF
square
#6F42E1 #E14265 #B4E142 #42E1BF
split-complementary
#6F42E1 #E1BF42 #65E142
monochromatic
#3A1792 #4F1FC6 #6F42E1 #9777E9 #BFACF2

Accessibility & contrast

On white

5.93
#6F42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#6F42E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42E1
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42E1#FFFFFF#000000##FFFFFF
##6F42E11.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#0060DE
Tritanopia (blue-blind)
#466C8D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6f42e1;
/* rgb */ color: rgb(111, 66, 225);
/* oklch */ color: oklch(52.8% 0.225 289.3);
Tailwind
colors: {
  custom: {
    50: '#a27aec',
    500: '#6f42e1',
    950: '#000000',
  },
}
SCSS
$custom: #6f42e1;
$custom-light: #a27aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42e1",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 256.981,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52751,
    "c": 0.2254,
    "h": 289.3
  },
  "luminance": 0.12712
}

Semantic roles & 50–950 ramp

primary
#6F42E1
secondary
#CDE09F
accent
#EF38BC
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6F42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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