#5F458D#5F458D

#5F458D is a mid, moderate violet. Relative luminance 0.086; OKLCH L 45.3% C 0.116 H 298.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5F458D
RGBrgb(95, 69, 141)
HSLhsl(262, 34%, 41%)
HSVhsv(262, 51%, 55%)
CMYKcmyk(32.6%, 51.1%, 0%, 44.7%)
CIE-LABlab(35.23, 27.59, -36.14)
CIE-LCHlch(35.23, 45.47, 307.36°)
OKLaboklab(45.3% 0.0549 -0.1018)
OKLCHoklch(45.3% 0.116 298.3)
XYZxyz(11.6540, 8.6121, 26.2425)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F458D #738D45
analogous
#454F8D #5F458D #83458D
triadic
#5F458D #8D5F45 #458D5F
tetradic
#5F458D #8D454F #738D45 #458D83
square
#5F458D #8D454F #738D45 #458D83
split-complementary
#5F458D #8D8345 #4F8D45
monochromatic
#281D3B #433164 #5F458D #7C5FB1 #9E88C5

Accessibility & contrast

On white

7.71
#5F458D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F458D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F458D
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F458D#FFFFFF#000000##FFFFFF
##5F458D1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#555362
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f458d;
/* rgb */ color: rgb(95, 69, 141);
/* oklch */ color: oklch(45.3% 0.116 298.3);
Tailwind
colors: {
  custom: {
    50: '#8f79af',
    500: '#5f458d',
    950: '#000000',
  },
}
SCSS
$custom: #5f458d;
$custom-light: #8f79af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f458d",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 141
  },
  "hsl": {
    "h": 261.667,
    "s": 34.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45295,
    "c": 0.1157,
    "h": 298.3
  },
  "luminance": 0.08612
}

Semantic roles & 50–950 ramp

primary
#5F458D
secondary
#9EB07E
accent
#CA5DA3
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0D0910
muted
#7D7B7F

Preview Lab

Preview with #5F458D

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

Preview Lab → · Contrast checker → · Palette generator →

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