#5F4297#5F4297

#5F4297 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.4% C 0.134 H 296.4°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5F4297
RGBrgb(95, 66, 151)
HSLhsl(260, 39%, 43%)
HSVhsv(260, 56%, 59%)
CMYKcmyk(37.1%, 56.3%, 0%, 40.8%)
CIE-LABlab(35.13, 32.19, -42.39)
CIE-LCHlch(35.13, 53.23, 307.21°)
OKLaboklab(45.42% 0.0597 -0.1201)
OKLCHoklch(45.42% 0.134 296.4)
XYZxyz(12.2520, 8.5635, 30.2796)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4297 #7A9742
analogous
#424F97 #5F4297 #8A4297
triadic
#5F4297 #975F42 #42975F
tetradic
#5F4297 #97424F #7A9742 #42978A
square
#5F4297 #97424F #7A9742 #42978A
split-complementary
#5F4297 #978A42 #4F9742
monochromatic
#291D42 #442F6C #5F4297 #7D5EB8 #9F88CB

Accessibility & contrast

On white

7.74
#5F4297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F4297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4297
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4297#FFFFFF#000000##FFFFFF
##5F42971.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C539A
Deuteranopia (green-blind)
#255295
Tritanopia (blue-blind)
#525366
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f4297;
/* rgb */ color: rgb(95, 66, 151);
/* oklch */ color: oklch(45.4% 0.134 296.4);
Tailwind
colors: {
  custom: {
    50: '#9077b6',
    500: '#5f4297',
    950: '#000000',
  },
}
SCSS
$custom: #5f4297;
$custom-light: #9077b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4297",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 260.471,
    "s": 39.171,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45423,
    "c": 0.13415,
    "h": 296.4
  },
  "luminance": 0.08564
}

Semantic roles & 50–950 ramp

primary
#5F4297
secondary
#A3B67F
accent
#CF59A7
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0911
muted
#7E7B80

Preview Lab

Preview with #5F4297

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

Preview Lab → · Contrast checker → · Palette generator →

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