#6042F3#6042F3

#6042F3 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.1% C 0.247 H 281.6°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#6042F3
RGBrgb(96, 66, 243)
HSLhsl(250, 88%, 61%)
HSVhsv(250, 73%, 95%)
CMYKcmyk(60.5%, 72.8%, 0%, 4.7%)
CIE-LABlab(42.54, 59.00, -83.98)
CIE-LCHlch(42.54, 102.63, 305.09°)
OKLaboklab(53.06% 0.0499 -0.2422)
OKLCHoklch(53.06% 0.247 281.6)
XYZxyz(22.9447, 12.8526, 86.0484)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042F3 #D5F342
analogous
#427DF3 #6042F3 #B842F3
triadic
#6042F3 #F36042 #42F360
tetradic
#6042F3 #F3427D #D5F342 #42F3B8
square
#6042F3 #F3427D #D5F342 #42F3B8
split-complementary
#6042F3 #F3B842 #7DF342
monochromatic
#270BAF #340FE9 #6042F3 #907CF7 #C1B5FA

Accessibility & contrast

On white

5.88
#6042F3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#6042F3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042F3
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042F3#FFFFFF#000000##FFFFFF
##6042F31.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF8
Deuteranopia (green-blind)
#005EF0
Tritanopia (blue-blind)
#007497
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6042f3;
/* rgb */ color: rgb(96, 66, 243);
/* oklch */ color: oklch(53.1% 0.247 281.6);
Tailwind
colors: {
  custom: {
    50: '#9d7af8',
    500: '#6042f3',
    950: '#000000',
  },
}
SCSS
$custom: #6042f3;
$custom-light: #9d7af8;
$custom-dark: #000000;
JSON
{
  "hex": "#6042f3",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 243
  },
  "hsl": {
    "h": 250.169,
    "s": 88.06,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53056,
    "c": 0.24726,
    "h": 281.6
  },
  "luminance": 0.12854
}

Semantic roles & 50–950 ramp

primary
#6042F3
secondary
#DFEAA7
accent
#E501BE
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6042F3

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

Preview Lab → · Contrast checker → · Palette generator →

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