#5F4199#5F4199

#5F4199 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.4% C 0.138 H 296.2°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5F4199
RGBrgb(95, 65, 153)
HSLhsl(260, 40%, 43%)
HSVhsv(260, 58%, 60%)
CMYKcmyk(37.9%, 57.5%, 0%, 40%)
CIE-LABlab(35.03, 33.35, -43.76)
CIE-LCHlch(35.03, 55.02, 307.31°)
OKLaboklab(45.39% 0.061 -0.1242)
OKLCHoklch(45.39% 0.138 296.2)
XYZxyz(12.3579, 8.5132, 31.1229)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4199 #7B9941
analogous
#414F99 #5F4199 #8B4199
triadic
#5F4199 #995F41 #41995F
tetradic
#5F4199 #99414F #7B9941 #41998B
square
#5F4199 #99414F #7B9941 #41998B
split-complementary
#5F4199 #998B41 #4F9941
monochromatic
#2A1D43 #442F6E #5F4199 #7D5DBA #9F88CC

Accessibility & contrast

On white

7.77
#5F4199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5F4199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4199
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4199#FFFFFF#000000##FFFFFF
##5F41991.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16539C
Deuteranopia (green-blind)
#215197
Tritanopia (blue-blind)
#515366
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f4199;
/* rgb */ color: rgb(95, 65, 153);
/* oklch */ color: oklch(45.4% 0.138 296.2);
Tailwind
colors: {
  custom: {
    50: '#9077b8',
    500: '#5f4199',
    950: '#000000',
  },
}
SCSS
$custom: #5f4199;
$custom-light: #9077b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4199",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 153
  },
  "hsl": {
    "h": 260.455,
    "s": 40.367,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45391,
    "c": 0.13836,
    "h": 296.2
  },
  "luminance": 0.08513
}

Semantic roles & 50–950 ramp

primary
#5F4199
secondary
#A4B77F
accent
#D058A7
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0811
muted
#7E7B80

Preview Lab

Preview with #5F4199

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

Preview Lab → · Contrast checker → · Palette generator →

#5F4199 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva