#6142D9#6142D9

#6142D9 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.217 H 285.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#6142D9
RGBrgb(97, 66, 217)
HSLhsl(252, 67%, 55%)
HSVhsv(252, 70%, 85%)
CMYKcmyk(55.3%, 69.6%, 0%, 14.9%)
CIE-LABlab(40.32, 51.62, -72.85)
CIE-LCHlch(40.32, 89.28, 305.32°)
OKLaboklab(50.8% 0.0565 -0.2096)
OKLCHoklch(50.8% 0.217 285.1)
XYZxyz(19.3986, 11.4464, 66.8194)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142D9 #BAD942
analogous
#426ED9 #6142D9 #AD42D9
triadic
#6142D9 #D96142 #42D961
tetradic
#6142D9 #D9426E #BAD942 #42D9AD
square
#6142D9 #D9426E #BAD942 #42D9AD
split-complementary
#6142D9 #D9AD42 #6ED942
monochromatic
#311B86 #4325B9 #6142D9 #8C75E3 #B6A8ED

Accessibility & contrast

On white

6.38
#6142D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6142D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142D9
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142D9#FFFFFF#000000##FFFFFF
##6142D91.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)
#0063DE
Deuteranopia (green-blind)
#005AD6
Tritanopia (blue-blind)
#296A89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6142d9;
/* rgb */ color: rgb(97, 66, 217);
/* oklch */ color: oklch(50.8% 0.217 285.1);
Tailwind
colors: {
  custom: {
    50: '#9979e6',
    500: '#6142d9',
    950: '#000000',
  },
}
SCSS
$custom: #6142d9;
$custom-light: #9979e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6142d9",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 252.318,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50801,
    "c": 0.21706,
    "h": 285.1
  },
  "luminance": 0.11448
}

Semantic roles & 50–950 ramp

primary
#6142D9
secondary
#CEDB9C
accent
#E93EC6
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6142D9

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

Preview Lab → · Contrast checker → · Palette generator →

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