#6041E4#6041E4

#6041E4 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.6% C 0.231 H 283.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#6041E4
RGBrgb(96, 65, 228)
HSLhsl(251, 75%, 57%)
HSVhsv(251, 71%, 89%)
CMYKcmyk(57.9%, 71.5%, 0%, 10.6%)
CIE-LABlab(41.00, 55.18, -78.02)
CIE-LCHlch(41.00, 95.56, 305.27°)
OKLaboklab(51.56% 0.0537 -0.2247)
OKLCHoklch(51.56% 0.231 283.4)
XYZxyz(20.7134, 11.8675, 74.5829)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6041E4 #C5E441
analogous
#4174E4 #6041E4 #B141E4
triadic
#6041E4 #E46041 #41E460
tetradic
#6041E4 #E44174 #C5E441 #41E4B1
square
#6041E4 #E44174 #C5E441 #41E4B1
split-complementary
#6041E4 #E4B141 #74E441
monochromatic
#2E1595 #3E1DCB #6041E4 #8D77EC #BAACF3

Accessibility & contrast

On white

6.22
#6041E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6041E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6041E4
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6041E4#FFFFFF#000000##FFFFFF
##6041E41.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E9
Deuteranopia (green-blind)
#005BE1
Tritanopia (blue-blind)
#0D6E8F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6041e4;
/* rgb */ color: rgb(96, 65, 228);
/* oklch */ color: oklch(51.6% 0.231 283.4);
Tailwind
colors: {
  custom: {
    50: '#9b79ee',
    500: '#6041e4',
    950: '#000000',
  },
}
SCSS
$custom: #6041e4;
$custom-light: #9b79ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6041e4",
  "rgb": {
    "r": 96,
    "g": 65,
    "b": 228
  },
  "hsl": {
    "h": 251.411,
    "s": 75.115,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51558,
    "c": 0.23108,
    "h": 283.4
  },
  "luminance": 0.11869
}

Semantic roles & 50–950 ramp

primary
#6041E4
secondary
#D5E19F
accent
#F236CE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #6041E4

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

Preview Lab → · Contrast checker → · Palette generator →

#6041E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva