#6142DF#6142DF

#6142DF is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.224 H 284.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#6142DF
RGBrgb(97, 66, 223)
HSLhsl(252, 71%, 57%)
HSVhsv(252, 70%, 87%)
CMYKcmyk(56.5%, 70.4%, 0%, 12.5%)
CIE-LABlab(40.84, 53.35, -75.44)
CIE-LCHlch(40.84, 92.40, 305.27°)
OKLaboklab(51.33% 0.0553 -0.2172)
OKLCHoklch(51.33% 0.224 284.3)
XYZxyz(20.1932, 11.7643, 71.0044)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142DF #C0DF42
analogous
#4272DF #6142DF #B042DF
triadic
#6142DF #DF6142 #42DF61
tetradic
#6142DF #DF4272 #C0DF42 #42DFB0
square
#6142DF #DF4272 #C0DF42 #42DFB0
split-complementary
#6142DF #DFB042 #72DF42
monochromatic
#2F188E #4121C3 #6142DF #8D76E8 #B9ABF1

Accessibility & contrast

On white

6.26
#6142DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6142DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142DF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142DF#FFFFFF#000000##FFFFFF
##6142DF1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005BDC
Tritanopia (blue-blind)
#1F6C8C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6142df;
/* rgb */ color: rgb(97, 66, 223);
/* oklch */ color: oklch(51.3% 0.224 284.3);
Tailwind
colors: {
  custom: {
    50: '#9a79ea',
    500: '#6142df',
    950: '#000000',
  },
}
SCSS
$custom: #6142df;
$custom-light: #9a79ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6142df",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 251.847,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51327,
    "c": 0.2241,
    "h": 284.3
  },
  "luminance": 0.11766
}

Semantic roles & 50–950 ramp

primary
#6142DF
secondary
#D2DF9E
accent
#EE3ACA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6142DF

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

Preview Lab → · Contrast checker → · Palette generator →

#6142DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva