#5F46AF#5F46AF

#5F46AF is a mid, vivid violet. Relative luminance 0.099; OKLCH L 47.8% C 0.160 H 290.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5F46AF
RGBrgb(95, 70, 175)
HSLhsl(254, 43%, 48%)
HSVhsv(254, 60%, 69%)
CMYKcmyk(45.7%, 60%, 0%, 31.4%)
CIE-LABlab(37.68, 36.69, -52.68)
CIE-LCHlch(37.68, 64.20, 304.85°)
OKLaboklab(47.82% 0.0546 -0.1504)
OKLCHoklch(47.82% 0.16 290)
XYZxyz(14.6452, 9.9078, 41.6899)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46AF #96AF46
analogous
#4661AF #5F46AF #9346AF
triadic
#5F46AF #AF5F46 #46AF5F
tetradic
#5F46AF #AF4661 #96AF46 #46AF93
square
#5F46AF #AF4661 #96AF46 #46AF93
split-complementary
#5F46AF #AF9346 #61AF46
monochromatic
#302358 #473583 #5F46AF #826DC5 #A899D6

Accessibility & contrast

On white

7.04
#5F46AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5F46AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F46AF
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46AF#FFFFFF#000000##FFFFFF
##5F46AF1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#475E74
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f46af;
/* rgb */ color: rgb(95, 70, 175);
/* oklch */ color: oklch(47.8% 0.160 290.0);
Tailwind
colors: {
  custom: {
    50: '#927ac8',
    500: '#5f46af',
    950: '#000000',
  },
}
SCSS
$custom: #5f46af;
$custom-light: #927ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46af",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 175
  },
  "hsl": {
    "h": 254.286,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47816,
    "c": 0.16001,
    "h": 290
  },
  "luminance": 0.09908
}

Semantic roles & 50–950 ramp

primary
#5F46AF
secondary
#B6C28E
accent
#D355B5
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5F46AF

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

Preview Lab → · Contrast checker → · Palette generator →

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