#6142EF#6142EF

#6142EF is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.243 H 282.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#6142EF
RGBrgb(97, 66, 239)
HSLhsl(251, 84%, 60%)
HSVhsv(251, 72%, 94%)
CMYKcmyk(59.4%, 72.4%, 0%, 6.3%)
CIE-LABlab(42.26, 57.97, -82.18)
CIE-LCHlch(42.26, 100.57, 305.20°)
OKLaboklab(52.77% 0.0521 -0.2369)
OKLCHoklch(52.77% 0.243 282.4)
XYZxyz(22.4531, 12.6683, 82.9067)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142EF #D0EF42
analogous
#427AEF #6142EF #B742EF
triadic
#6142EF #EF6142 #42EF61
tetradic
#6142EF #EF427A #D0EF42 #42EFB7
square
#6142EF #EF427A #D0EF42 #42EFB7
split-complementary
#6142EF #EFB742 #7AEF42
monochromatic
#2A0EA8 #3813E1 #6142EF #907AF4 #BFB3F9

Accessibility & contrast

On white

5.94
#6142EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#6142EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142EF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142EF#FFFFFF#000000##FFFFFF
##6142EF1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F4
Deuteranopia (green-blind)
#005EEC
Tritanopia (blue-blind)
#007295
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6142ef;
/* rgb */ color: rgb(97, 66, 239);
/* oklch */ color: oklch(52.8% 0.243 282.4);
Tailwind
colors: {
  custom: {
    50: '#9d7af6',
    500: '#6142ef',
    950: '#000000',
  },
}
SCSS
$custom: #6142ef;
$custom-light: #9d7af6;
$custom-dark: #000000;
JSON
{
  "hex": "#6142ef",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 239
  },
  "hsl": {
    "h": 250.751,
    "s": 84.39,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52767,
    "c": 0.24257,
    "h": 282.4
  },
  "luminance": 0.1267
}

Semantic roles & 50–950 ramp

primary
#6142EF
secondary
#DCE8A5
accent
#FB2DD6
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6142EF

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

Preview Lab → · Contrast checker → · Palette generator →

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