#6142DD#6142DD

#6142DD is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.222 H 284.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#6142DD
RGBrgb(97, 66, 221)
HSLhsl(252, 70%, 56%)
HSVhsv(252, 70%, 87%)
CMYKcmyk(56.1%, 70.1%, 0%, 13.3%)
CIE-LABlab(40.67, 52.77, -74.58)
CIE-LCHlch(40.67, 91.36, 305.28°)
OKLaboklab(51.15% 0.0557 -0.2146)
OKLCHoklch(51.15% 0.222 284.6)
XYZxyz(19.9251, 11.6571, 69.5927)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142DD #BEDD42
analogous
#4271DD #6142DD #AF42DD
triadic
#6142DD #DD6142 #42DD61
tetradic
#6142DD #DD4271 #BEDD42 #42DDAF
square
#6142DD #DD4271 #BEDD42 #42DDAF
split-complementary
#6142DD #DDAF42 #71DD42
monochromatic
#30198C #4222BF #6142DD #8C76E6 #B8AAF0

Accessibility & contrast

On white

6.30
#6142DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6142DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142DD
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142DD#FFFFFF#000000##FFFFFF
##6142DD1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E2
Deuteranopia (green-blind)
#005BDA
Tritanopia (blue-blind)
#236B8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6142dd;
/* rgb */ color: rgb(97, 66, 221);
/* oklch */ color: oklch(51.2% 0.222 284.6);
Tailwind
colors: {
  custom: {
    50: '#9a79e9',
    500: '#6142dd',
    950: '#000000',
  },
}
SCSS
$custom: #6142dd;
$custom-light: #9a79e9;
$custom-dark: #000000;
JSON
{
  "hex": "#6142dd",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 252,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51151,
    "c": 0.22176,
    "h": 284.6
  },
  "luminance": 0.11658
}

Semantic roles & 50–950 ramp

primary
#6142DD
secondary
#D1DD9D
accent
#EC3BC9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6142DD

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

Preview Lab → · Contrast checker → · Palette generator →

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