#5740AF#5740AF

#5740AF is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.1% C 0.169 H 287.4°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5740AF
RGBrgb(87, 64, 175)
HSLhsl(252, 46%, 47%)
HSVhsv(252, 63%, 69%)
CMYKcmyk(50.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(35.57, 38.58, -56.13)
CIE-LCHlch(35.57, 68.11, 304.50°)
OKLaboklab(46.1% 0.0504 -0.1608)
OKLCHoklch(46.1% 0.169 287.4)
XYZxyz(13.4995, 8.7876, 41.5340)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740AF #98AF40
analogous
#4061AF #5740AF #8F40AF
triadic
#5740AF #AF5740 #40AF57
tetradic
#5740AF #AF4061 #98AF40 #40AF8F
square
#5740AF #AF4061 #98AF40 #40AF8F
split-complementary
#5740AF #AF8F40 #61AF40
monochromatic
#2A1F55 #413082 #5740AF #7A65C7 #A092D7

Accessibility & contrast

On white

7.62
#5740AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5740AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740AF
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740AF#FFFFFF#000000##FFFFFF
##5740AF1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#385B71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5740af;
/* rgb */ color: rgb(87, 64, 175);
/* oklch */ color: oklch(46.1% 0.169 287.4);
Tailwind
colors: {
  custom: {
    50: '#8e76c8',
    500: '#5740af',
    950: '#000000',
  },
}
SCSS
$custom: #5740af;
$custom-light: #8e76c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5740af",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 252.432,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46095,
    "c": 0.16851,
    "h": 287.4
  },
  "luminance": 0.08788
}

Semantic roles & 50–950 ramp

primary
#5740AF
secondary
#B6C388
accent
#D652BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5740AF

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

Preview Lab → · Contrast checker → · Palette generator →

#5740AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva