#6142AF#6142AF

#6142AF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.166 H 292.0°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#6142AF
RGBrgb(97, 66, 175)
HSLhsl(257, 45%, 47%)
HSVhsv(257, 62%, 69%)
CMYKcmyk(44.6%, 62.3%, 0%, 31.4%)
CIE-LABlab(36.99, 39.46, -53.78)
CIE-LCHlch(36.99, 66.71, 306.26°)
OKLaboklab(47.36% 0.0619 -0.1536)
OKLCHoklch(47.36% 0.166 292)
XYZxyz(14.6137, 9.5325, 41.6191)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142AF #90AF42
analogous
#425AAF #6142AF #9742AF
triadic
#6142AF #AF6142 #42AF61
tetradic
#6142AF #AF425A #90AF42 #42AF97
square
#6142AF #AF425A #90AF42 #42AF97
split-complementary
#6142AF #AF9742 #5AAF42
monochromatic
#302056 #483183 #6142AF #8368C6 #A795D7

Accessibility & contrast

On white

7.22
#6142AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6142AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6142AF
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142AF#FFFFFF#000000##FFFFFF
##6142AF1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#4A5B72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6142af;
/* rgb */ color: rgb(97, 66, 175);
/* oklch */ color: oklch(47.4% 0.166 292.0);
Tailwind
colors: {
  custom: {
    50: '#9478c8',
    500: '#6142af',
    950: '#000000',
  },
}
SCSS
$custom: #6142af;
$custom-light: #9478c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6142af",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 257.064,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47362,
    "c": 0.16559,
    "h": 292
  },
  "luminance": 0.09533
}

Semantic roles & 50–950 ramp

primary
#6142AF
secondary
#B2C28A
accent
#D553B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6142AF

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

Preview Lab → · Contrast checker → · Palette generator →

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