#5F5AEA#5F5AEA

#5F5AEA is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.7% C 0.210 H 278.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F5AEA
RGBrgb(95, 90, 234)
HSLhsl(242, 77%, 64%)
HSVhsv(242, 62%, 92%)
CMYKcmyk(59.4%, 61.5%, 0%, 8.2%)
CIE-LABlab(46.56, 42.93, -72.33)
CIE-LCHlch(46.56, 84.12, 300.69°)
OKLaboklab(55.7% 0.0315 -0.2081)
OKLCHoklch(55.7% 0.21 278.6)
XYZxyz(23.2220, 15.6840, 79.6296)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AEA #E5EA5A
analogous
#5A9DEA #5F5AEA #A75AEA
triadic
#5F5AEA #EA5F5A #5AEA5F
tetradic
#5F5AEA #EA5A9D #E5EA5A #5AEAA7
square
#5F5AEA #EA5A9D #E5EA5A #5AEAA7
split-complementary
#5F5AEA #EAA75A #9DEA5A
monochromatic
#1C17B3 #2A24E3 #5F5AEA #9490F1 #C8C7F8

Accessibility & contrast

On white

5.08
#5F5AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5F5AEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AEA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AEA#FFFFFF#000000##FFFFFF
##5F5AEA1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#0068E7
Tritanopia (blue-blind)
#007E9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5aea;
/* rgb */ color: rgb(95, 90, 234);
/* oklch */ color: oklch(55.7% 0.210 278.6);
Tailwind
colors: {
  custom: {
    50: '#9989f2',
    500: '#5f5aea',
    950: '#000000',
  },
}
SCSS
$custom: #5f5aea;
$custom-light: #9989f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5aea",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 242.083,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.55696,
    "c": 0.21048,
    "h": 278.6
  },
  "luminance": 0.15686
}

Semantic roles & 50–950 ramp

primary
#5F5AEA
secondary
#E8E9B6
accent
#DA0CD3
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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