#5F438E#5F438E

#5F438E is a dark, vivid violet. Relative luminance 0.084; OKLCH L 45.0% C 0.120 H 298.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5F438E
RGBrgb(95, 67, 142)
HSLhsl(262, 36%, 41%)
HSVhsv(262, 53%, 56%)
CMYKcmyk(33.1%, 52.8%, 0%, 44.3%)
CIE-LABlab(34.80, 29.09, -37.43)
CIE-LCHlch(34.80, 47.41, 307.86°)
OKLaboklab(45% 0.0578 -0.1056)
OKLCHoklch(45% 0.12 298.7)
XYZxyz(11.6078, 8.4001, 26.5958)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F438E #728E43
analogous
#434C8E #5F438E #84438E
triadic
#5F438E #8E5F43 #438E5F
tetradic
#5F438E #8E434C #728E43 #438E84
square
#5F438E #8E434C #728E43 #438E84
split-complementary
#5F438E #8E8443 #4C8E43
monochromatic
#271C3B #432F64 #5F438E #7C5CB2 #9E86C6

Accessibility & contrast

On white

7.84
#5F438E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5F438E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F438E
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F438E#FFFFFF#000000##FFFFFF
##5F438E1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285291
Deuteranopia (green-blind)
#2F518C
Tritanopia (blue-blind)
#555162
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f438e;
/* rgb */ color: rgb(95, 67, 142);
/* oklch */ color: oklch(45.0% 0.120 298.7);
Tailwind
colors: {
  custom: {
    50: '#8f78af',
    500: '#5f438e',
    950: '#000000',
  },
}
SCSS
$custom: #5f438e;
$custom-light: #8f78af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f438e",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 142
  },
  "hsl": {
    "h": 262.4,
    "s": 35.885,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44999,
    "c": 0.12039,
    "h": 298.7
  },
  "luminance": 0.084
}

Semantic roles & 50–950 ramp

primary
#5F438E
secondary
#9DB17C
accent
#CC5CA2
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0D0910
muted
#7D7B7F

Preview Lab

Preview with #5F438E

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

Preview Lab → · Contrast checker → · Palette generator →

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