#6042BC#6042BC

#6042BC is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.182 H 289.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#6042BC
RGBrgb(96, 66, 188)
HSLhsl(255, 48%, 50%)
HSVhsv(255, 65%, 74%)
CMYKcmyk(48.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(37.87, 43.01, -60.04)
CIE-LCHlch(37.87, 73.86, 305.61°)
OKLaboklab(48.28% 0.0594 -0.172)
OKLCHoklch(48.28% 0.182 289)
XYZxyz(15.8466, 10.0134, 48.6650)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042BC #9EBC42
analogous
#4261BC #6042BC #9D42BC
triadic
#6042BC #BC6042 #42BC60
tetradic
#6042BC #BC4261 #9EBC42 #42BC9D
square
#6042BC #BC4261 #9EBC42 #42BC9D
split-complementary
#6042BC #BC9D42 #61BC42
monochromatic
#322261 #49328F #6042BC #866FCC #AC9CDC

Accessibility & contrast

On white

6.99
#6042BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#6042BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042BC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042BC#FFFFFF#000000##FFFFFF
##6042BC1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#416079
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6042bc;
/* rgb */ color: rgb(96, 66, 188);
/* oklch */ color: oklch(48.3% 0.182 289.0);
Tailwind
colors: {
  custom: {
    50: '#9578d1',
    500: '#6042bc',
    950: '#000000',
  },
}
SCSS
$custom: #6042bc;
$custom-light: #9578d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6042bc",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 254.754,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48281,
    "c": 0.18197,
    "h": 289
  },
  "luminance": 0.10014
}

Semantic roles & 50–950 ramp

primary
#6042BC
secondary
#BBC991
accent
#D850B6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6042BC

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

Preview Lab → · Contrast checker → · Palette generator →

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