#6142AC#6142AC

#6142AC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.1% C 0.162 H 292.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#6142AC
RGBrgb(97, 66, 172)
HSLhsl(258, 45%, 47%)
HSVhsv(258, 62%, 67%)
CMYKcmyk(43.6%, 61.6%, 0%, 32.5%)
CIE-LABlab(36.77, 38.60, -52.35)
CIE-LCHlch(36.77, 65.04, 306.40°)
OKLaboklab(47.14% 0.0621 -0.1494)
OKLCHoklch(47.14% 0.162 292.6)
XYZxyz(14.3223, 9.4160, 40.0846)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142AC #8DAC42
analogous
#4258AC #6142AC #9642AC
triadic
#6142AC #AC6142 #42AC61
tetradic
#6142AC #AC4258 #8DAC42 #42AC96
square
#6142AC #AC4258 #8DAC42 #42AC96
split-complementary
#6142AC #AC9642 #58AC42
monochromatic
#2F2054 #483180 #6142AC #8267C5 #A693D6

Accessibility & contrast

On white

7.28
#6142AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6142AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6142AC
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142AC#FFFFFF#000000##FFFFFF
##6142AC1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#4C5A71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6142ac;
/* rgb */ color: rgb(97, 66, 172);
/* oklch */ color: oklch(47.1% 0.162 292.6);
Tailwind
colors: {
  custom: {
    50: '#9378c5',
    500: '#6142ac',
    950: '#000000',
  },
}
SCSS
$custom: #6142ac;
$custom-light: #9378c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6142ac",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 257.547,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47135,
    "c": 0.16176,
    "h": 292.6
  },
  "luminance": 0.09416
}

Semantic roles & 50–950 ramp

primary
#6142AC
secondary
#B1C189
accent
#D454AF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6142AC

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

Preview Lab → · Contrast checker → · Palette generator →

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