#604178#604178

#604178 is a dark, moderate violet. Relative luminance 0.076; OKLCH L 43.4% C 0.094 H 308.9°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#604178
RGBrgb(96, 65, 120)
HSLhsl(274, 30%, 36%)
HSVhsv(274, 46%, 47%)
CMYKcmyk(20%, 45.8%, 0%, 52.9%)
CIE-LABlab(33.19, 24.85, -26.38)
CIE-LCHlch(33.19, 36.24, 313.29°)
OKLaboklab(43.41% 0.0593 -0.0734)
OKLCHoklch(43.41% 0.094 308.9)
XYZxyz(10.1037, 7.6236, 18.7049)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#604178 #597841
analogous
#454178 #604178 #784175
triadic
#604178 #786041 #417860
tetradic
#604178 #784541 #597841 #417578
square
#604178 #784541 #597841 #417578
split-complementary
#604178 #757841 #417845
monochromatic
#201629 #402B50 #604178 #8057A0 #9E7CB8

Accessibility & contrast

On white

8.32
#604178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#604178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #604178
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##604178#FFFFFF#000000##FFFFFF
##6041781.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354D7A
Deuteranopia (green-blind)
#3C4F77
Tritanopia (blue-blind)
#5D4A56
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #604178;
/* rgb */ color: rgb(96, 65, 120);
/* oklch */ color: oklch(43.4% 0.094 308.9);
Tailwind
colors: {
  custom: {
    50: '#8e769f',
    500: '#604178',
    950: '#000000',
  },
}
SCSS
$custom: #604178;
$custom-light: #8e769f;
$custom-dark: #000000;
JSON
{
  "hex": "#604178",
  "rgb": {
    "r": 96,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 273.818,
    "s": 29.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43414,
    "c": 0.09432,
    "h": 308.9
  },
  "luminance": 0.07623
}

Semantic roles & 50–950 ramp

primary
#604178
secondary
#87A372
accent
#C6628E
background
#F8F7F9
surface
#F0EDF2
border
#CBC8CC
text
#0C080E
muted
#7D7B7E

Preview Lab

Preview with #604178

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

Preview Lab → · Contrast checker → · Palette generator →

#604178 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva