#6142D8#6142D8

#6142D8 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.216 H 285.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6142D8
RGBrgb(97, 66, 216)
HSLhsl(252, 66%, 55%)
HSVhsv(252, 69%, 85%)
CMYKcmyk(55.1%, 69.4%, 0%, 15.3%)
CIE-LABlab(40.24, 51.32, -72.42)
CIE-LCHlch(40.24, 88.76, 305.33°)
OKLaboklab(50.71% 0.0566 -0.2083)
OKLCHoklch(50.71% 0.216 285.2)
XYZxyz(19.2689, 11.3946, 66.1365)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142D8 #B9D842
analogous
#426ED8 #6142D8 #AC42D8
triadic
#6142D8 #D86142 #42D861
tetradic
#6142D8 #D8426E #B9D842 #42D8AC
square
#6142D8 #D8426E #B9D842 #42D8AC
split-complementary
#6142D8 #D8AC42 #6ED842
monochromatic
#311B84 #4426B7 #6142D8 #8B75E2 #B6A7ED

Accessibility & contrast

On white

6.40
#6142D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6142D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142D8
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142D8#FFFFFF#000000##FFFFFF
##6142D81.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#005AD5
Tritanopia (blue-blind)
#2A6A88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6142d8;
/* rgb */ color: rgb(97, 66, 216);
/* oklch */ color: oklch(50.7% 0.216 285.2);
Tailwind
colors: {
  custom: {
    50: '#9979e5',
    500: '#6142d8',
    950: '#000000',
  },
}
SCSS
$custom: #6142d8;
$custom-light: #9979e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6142d8",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 252.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50714,
    "c": 0.21587,
    "h": 285.2
  },
  "luminance": 0.11396
}

Semantic roles & 50–950 ramp

primary
#6142D8
secondary
#CDDA9C
accent
#E93FC6
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6142D8

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

Preview Lab → · Contrast checker → · Palette generator →

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