#6042BF#6042BF

#6042BF is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.186 H 288.5°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#6042BF
RGBrgb(96, 66, 191)
HSLhsl(254, 49%, 50%)
HSVhsv(254, 65%, 75%)
CMYKcmyk(49.7%, 65.4%, 0%, 25.1%)
CIE-LABlab(38.10, 43.88, -61.42)
CIE-LCHlch(38.10, 75.49, 305.54°)
OKLaboklab(48.52% 0.059 -0.1761)
OKLCHoklch(48.52% 0.186 288.5)
XYZxyz(16.1733, 10.1441, 50.3859)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042BF #A1BF42
analogous
#4262BF #6042BF #9E42BF
triadic
#6042BF #BF6042 #42BF60
tetradic
#6042BF #BF4262 #A1BF42 #42BF9E
square
#6042BF #BF4262 #A1BF42 #42BF9E
split-complementary
#6042BF #BF9E42 #62BF42
monochromatic
#322265 #493292 #6042BF #8670CE #AD9DDE

Accessibility & contrast

On white

6.93
#6042BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6042BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042BF
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042BF#FFFFFF#000000##FFFFFF
##6042BF1.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)
#005CC3
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#3F617B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6042bf;
/* rgb */ color: rgb(96, 66, 191);
/* oklch */ color: oklch(48.5% 0.186 288.5);
Tailwind
colors: {
  custom: {
    50: '#9578d3',
    500: '#6042bf',
    950: '#000000',
  },
}
SCSS
$custom: #6042bf;
$custom-light: #9578d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6042bf",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 254.4,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48523,
    "c": 0.18569,
    "h": 288.5
  },
  "luminance": 0.10145
}

Semantic roles & 50–950 ramp

primary
#6042BF
secondary
#BDCA93
accent
#D94FB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6042BF

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

Preview Lab → · Contrast checker → · Palette generator →

#6042BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva