#5F468C#5F468C

#5F468C is a mid, moderate violet. Relative luminance 0.087; OKLCH L 45.4% C 0.113 H 298.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5F468C
RGBrgb(95, 70, 140)
HSLhsl(261, 33%, 41%)
HSVhsv(261, 50%, 55%)
CMYKcmyk(32.1%, 50%, 0%, 45.1%)
CIE-LABlab(35.41, 26.71, -35.23)
CIE-LCHlch(35.41, 44.21, 307.16°)
OKLaboklab(45.42% 0.0534 -0.0992)
OKLCHoklch(45.42% 0.113 298.3)
XYZxyz(11.6420, 8.7065, 25.8730)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F468C #738C46
analogous
#46508C #5F468C #82468C
triadic
#5F468C #8C5F46 #468C5F
tetradic
#5F468C #8C4650 #738C46 #468C82
square
#5F468C #8C4650 #738C46 #468C82
split-complementary
#5F468C #8C8246 #508C46
monochromatic
#281D3A #433263 #5F468C #7C60AF #9E89C4

Accessibility & contrast

On white

7.66
#5F468C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F468C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F468C
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F468C#FFFFFF#000000##FFFFFF
##5F468C1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538E
Deuteranopia (green-blind)
#34538A
Tritanopia (blue-blind)
#565362
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f468c;
/* rgb */ color: rgb(95, 70, 140);
/* oklch */ color: oklch(45.4% 0.113 298.3);
Tailwind
colors: {
  custom: {
    50: '#8f7aae',
    500: '#5f468c',
    950: '#000000',
  },
}
SCSS
$custom: #5f468c;
$custom-light: #8f7aae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f468c",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 140
  },
  "hsl": {
    "h": 261.429,
    "s": 33.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45415,
    "c": 0.11262,
    "h": 298.3
  },
  "luminance": 0.08707
}

Semantic roles & 50–950 ramp

primary
#5F468C
secondary
#9EAF7F
accent
#C95EA3
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0910
muted
#7D7B7F

Preview Lab

Preview with #5F468C

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

Preview Lab → · Contrast checker → · Palette generator →

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