#5F468E#5F468E

#5F468E is a mid, moderate violet. Relative luminance 0.088; OKLCH L 45.5% C 0.115 H 297.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5F468E
RGBrgb(95, 70, 142)
HSLhsl(261, 34%, 42%)
HSVhsv(261, 51%, 56%)
CMYKcmyk(33.1%, 50.7%, 0%, 44.3%)
CIE-LABlab(35.53, 27.25, -36.27)
CIE-LCHlch(35.53, 45.37, 306.92°)
OKLaboklab(45.54% 0.0536 -0.1022)
OKLCHoklch(45.54% 0.115 297.7)
XYZxyz(11.7908, 8.7661, 26.6568)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F468E #758E46
analogous
#46518E #5F468E #83468E
triadic
#5F468E #8E5F46 #468E5F
tetradic
#5F468E #8E4651 #758E46 #468E83
square
#5F468E #8E4651 #758E46 #468E83
split-complementary
#5F468E #8E8346 #518E46
monochromatic
#281E3C #443265 #5F468E #7C60B1 #9E89C5

Accessibility & contrast

On white

7.63
#5F468E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5F468E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F468E
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F468E#FFFFFF#000000##FFFFFF
##5F468E1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5491
Deuteranopia (green-blind)
#33538C
Tritanopia (blue-blind)
#555463
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f468e;
/* rgb */ color: rgb(95, 70, 142);
/* oklch */ color: oklch(45.5% 0.115 297.7);
Tailwind
colors: {
  custom: {
    50: '#8f7aaf',
    500: '#5f468e',
    950: '#000000',
  },
}
SCSS
$custom: #5f468e;
$custom-light: #8f7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f468e",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 142
  },
  "hsl": {
    "h": 260.833,
    "s": 33.962,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.11541,
    "h": 297.7
  },
  "luminance": 0.08766
}

Semantic roles & 50–950 ramp

primary
#5F468E
secondary
#9FB07F
accent
#CA5EA4
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0D0910
muted
#7D7B7F

Preview Lab

Preview with #5F468E

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

Preview Lab → · Contrast checker → · Palette generator →

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