#604271#604271

#604271 is a dark, moderate violet. Relative luminance 0.076; OKLCH L 43.2% C 0.083 H 312.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#604271
RGBrgb(96, 66, 113)
HSLhsl(278, 26%, 35%)
HSVhsv(278, 42%, 44%)
CMYKcmyk(15%, 41.6%, 0%, 55.7%)
CIE-LABlab(33.08, 22.51, -22.15)
CIE-LCHlch(33.08, 31.58, 315.47°)
OKLaboklab(43.22% 0.0562 -0.0612)
OKLCHoklch(43.22% 0.083 312.6)
XYZxyz(9.7522, 7.5757, 16.5681)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#604271 #537142
analogous
#494271 #604271 #71426A
triadic
#604271 #716042 #427160
tetradic
#604271 #714942 #537142 #426A71
square
#604271 #714942 #537142 #426A71
split-complementary
#604271 #6A7142 #427149
monochromatic
#1E1524 #3F2B4A #604271 #815998 #9E7BB2

Accessibility & contrast

On white

8.35
#604271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#604271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #604271
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##604271#FFFFFF#000000##FFFFFF
##6042711.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394C73
Deuteranopia (green-blind)
#414F70
Tritanopia (blue-blind)
#5E4954
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #604271;
/* rgb */ color: rgb(96, 66, 113);
/* oklch */ color: oklch(43.2% 0.083 312.6);
Tailwind
colors: {
  custom: {
    50: '#8e779a',
    500: '#604271',
    950: '#000000',
  },
}
SCSS
$custom: #604271;
$custom-light: #8e779a;
$custom-dark: #000000;
JSON
{
  "hex": "#604271",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 278.298,
    "s": 26.257,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43221,
    "c": 0.0831,
    "h": 312.6
  },
  "luminance": 0.07575
}

Semantic roles & 50–950 ramp

primary
#604271
secondary
#819D71
accent
#C36587
background
#F8F7F9
surface
#F0EDF2
border
#CBC8CC
text
#0C080E
muted
#7D7B7E

Preview Lab

Preview with #604271

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

Preview Lab → · Contrast checker → · Palette generator →

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