#5947A2#5947A2

#5947A2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.5% C 0.141 H 288.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5947A2
RGBrgb(89, 71, 162)
HSLhsl(252, 39%, 46%)
HSVhsv(252, 56%, 64%)
CMYKcmyk(45.1%, 56.2%, 0%, 36.5%)
CIE-LABlab(36.44, 30.87, -46.95)
CIE-LCHlch(36.44, 56.19, 303.33°)
OKLaboklab(46.48% 0.0455 -0.1337)
OKLCHoklch(46.48% 0.141 288.8)
XYZxyz(12.8928, 9.2385, 35.2793)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5947A2 #90A247
analogous
#4762A2 #5947A2 #8647A2
triadic
#5947A2 #A25947 #47A259
tetradic
#5947A2 #A24762 #90A247 #47A286
square
#5947A2 #A24762 #90A247 #47A286
split-complementary
#5947A2 #A28647 #62A247
monochromatic
#2A224D #423477 #5947A2 #7A69BD #9F94D0

Accessibility & contrast

On white

7.37
#5947A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5947A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5947A2
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5947A2#FFFFFF#000000##FFFFFF
##5947A21.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1558A5
Deuteranopia (green-blind)
#1753A0
Tritanopia (blue-blind)
#435B6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5947a2;
/* rgb */ color: rgb(89, 71, 162);
/* oklch */ color: oklch(46.5% 0.141 288.8);
Tailwind
colors: {
  custom: {
    50: '#8d7bbe',
    500: '#5947a2',
    950: '#000000',
  },
}
SCSS
$custom: #5947a2;
$custom-light: #8d7bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5947a2",
  "rgb": {
    "r": 89,
    "g": 71,
    "b": 162
  },
  "hsl": {
    "h": 251.868,
    "s": 39.056,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46481,
    "c": 0.14126,
    "h": 288.8
  },
  "luminance": 0.09239
}

Semantic roles & 50–950 ramp

primary
#5947A2
secondary
#B2BC89
accent
#CF59B8
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0D0912
muted
#7D7B81

Preview Lab

Preview with #5947A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5947A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva