#6142BE#6142BE

#6142BE is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.5% C 0.184 H 289.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#6142BE
RGBrgb(97, 66, 190)
HSLhsl(255, 49%, 50%)
HSVhsv(255, 65%, 75%)
CMYKcmyk(48.9%, 65.3%, 0%, 25.5%)
CIE-LABlab(38.12, 43.78, -60.80)
CIE-LCHlch(38.12, 74.92, 305.76°)
OKLaboklab(48.54% 0.0605 -0.1742)
OKLCHoklch(48.54% 0.184 289.2)
XYZxyz(16.1696, 10.1548, 49.8133)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142BE #9FBE42
analogous
#4261BE #6142BE #9F42BE
triadic
#6142BE #BE6142 #42BE61
tetradic
#6142BE #BE4261 #9FBE42 #42BE9F
square
#6142BE #BE4261 #9FBE42 #42BE9F
split-complementary
#6142BE #BE9F42 #61BE42
monochromatic
#322263 #4A3291 #6142BE #8770CE #AD9DDD

Accessibility & contrast

On white

6.93
#6142BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6142BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142BE
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142BE#FFFFFF#000000##FFFFFF
##6142BE1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC2
Deuteranopia (green-blind)
#0057BB
Tritanopia (blue-blind)
#42607A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6142be;
/* rgb */ color: rgb(97, 66, 190);
/* oklch */ color: oklch(48.5% 0.184 289.2);
Tailwind
colors: {
  custom: {
    50: '#9678d2',
    500: '#6142be',
    950: '#000000',
  },
}
SCSS
$custom: #6142be;
$custom-light: #9678d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6142be",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 255,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48536,
    "c": 0.18441,
    "h": 289.2
  },
  "luminance": 0.10156
}

Semantic roles & 50–950 ramp

primary
#6142BE
secondary
#BCCA92
accent
#D84FB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6142BE

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

Preview Lab → · Contrast checker → · Palette generator →

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