#6142A4#6142A4

#6142A4 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.5% C 0.151 H 294.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#6142A4
RGBrgb(97, 66, 164)
HSLhsl(259, 43%, 45%)
HSVhsv(259, 60%, 64%)
CMYKcmyk(40.9%, 59.8%, 0%, 35.7%)
CIE-LABlab(36.21, 36.33, -48.48)
CIE-LCHlch(36.21, 60.58, 306.84°)
OKLaboklab(46.54% 0.0624 -0.138)
OKLCHoklch(46.54% 0.151 294.3)
XYZxyz(13.5770, 9.1178, 36.1593)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142A4 #85A442
analogous
#4254A4 #6142A4 #9242A4
triadic
#6142A4 #A46142 #42A461
tetradic
#6142A4 #A44254 #85A442 #42A492
square
#6142A4 #A44254 #85A442 #42A492
split-complementary
#6142A4 #A49242 #54A442
monochromatic
#2D1F4D #473078 #6142A4 #8063C0 #A48FD2

Accessibility & contrast

On white

7.44
#6142A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#6142A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6142A4
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142A4#FFFFFF#000000##FFFFFF
##6142A41.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#1254A2
Tritanopia (blue-blind)
#50576C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6142a4;
/* rgb */ color: rgb(97, 66, 164);
/* oklch */ color: oklch(46.5% 0.151 294.3);
Tailwind
colors: {
  custom: {
    50: '#9278c0',
    500: '#6142a4',
    950: '#000000',
  },
}
SCSS
$custom: #6142a4;
$custom-light: #9278c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6142a4",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 258.98,
    "s": 42.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46545,
    "c": 0.15145,
    "h": 294.3
  },
  "luminance": 0.09118
}

Semantic roles & 50–950 ramp

primary
#6142A4
secondary
#ABBD85
accent
#D255AB
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #6142A4

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

Preview Lab → · Contrast checker → · Palette generator →

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