#604EB7#604EB7

#604EB7 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 49.9% C 0.159 H 287.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#604EB7
RGBrgb(96, 78, 183)
HSLhsl(250, 42%, 51%)
HSVhsv(250, 57%, 72%)
CMYKcmyk(47.5%, 57.4%, 0%, 28.2%)
CIE-LABlab(40.17, 34.50, -53.37)
CIE-LCHlch(40.17, 63.55, 302.88°)
OKLaboklab(49.85% 0.0466 -0.1524)
OKLCHoklch(49.85% 0.159 287)
XYZxyz(16.0930, 11.3538, 46.1341)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#604EB7 #A5B74E
analogous
#4E70B7 #604EB7 #944EB7
triadic
#604EB7 #B7604E #4EB760
tetradic
#604EB7 #B74E70 #A5B74E #4EB794
square
#604EB7 #B74E70 #A5B74E #4EB794
split-complementary
#604EB7 #B7944E #70B74E
monochromatic
#322863 #483A8E #604EB7 #877AC9 #AEA5DA

Accessibility & contrast

On white

6.42
#604EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#604EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #604EB7
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##604EB7#FFFFFF#000000##FFFFFF
##604EB71.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0361BB
Deuteranopia (green-blind)
#025CB5
Tritanopia (blue-blind)
#43667B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #604eb7;
/* rgb */ color: rgb(96, 78, 183);
/* oklch */ color: oklch(49.9% 0.159 287.0);
Tailwind
colors: {
  custom: {
    50: '#9380cd',
    500: '#604eb7',
    950: '#000000',
  },
}
SCSS
$custom: #604eb7;
$custom-light: #9380cd;
$custom-dark: #000000;
JSON
{
  "hex": "#604eb7",
  "rgb": {
    "r": 96,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 250.286,
    "s": 42.169,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4985,
    "c": 0.15933,
    "h": 287
  },
  "luminance": 0.11354
}

Semantic roles & 50–950 ramp

primary
#604EB7
secondary
#C0C899
accent
#D256BD
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #604EB7

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

Preview Lab → · Contrast checker → · Palette generator →

#604EB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva