#5F5AEC#5F5AEC

#5F5AEC is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 55.9% C 0.213 H 278.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5F5AEC
RGBrgb(95, 90, 236)
HSLhsl(242, 79%, 64%)
HSVhsv(242, 62%, 93%)
CMYKcmyk(59.7%, 61.9%, 0%, 7.5%)
CIE-LABlab(46.71, 43.56, -73.21)
CIE-LCHlch(46.71, 85.19, 300.76°)
OKLaboklab(55.86% 0.0314 -0.2107)
OKLCHoklch(55.86% 0.213 278.5)
XYZxyz(23.5110, 15.7996, 81.1513)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AEC #E7EC5A
analogous
#5A9EEC #5F5AEC #A85AEC
triadic
#5F5AEC #EC5F5A #5AEC5F
tetradic
#5F5AEC #EC5A9E #E7EC5A #5AECA8
square
#5F5AEC #EC5A9E #E7EC5A #5AECA8
split-complementary
#5F5AEC #ECA85A #9EEC5A
monochromatic
#1B15B7 #2A23E6 #5F5AEC #9491F2 #C9C8F9

Accessibility & contrast

On white

5.05
#5F5AEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5F5AEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AEC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AEC#FFFFFF#000000##FFFFFF
##5F5AEC1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#0069E9
Tritanopia (blue-blind)
#007E9B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f5aec;
/* rgb */ color: rgb(95, 90, 236);
/* oklch */ color: oklch(55.9% 0.213 278.5);
Tailwind
colors: {
  custom: {
    50: '#9a89f3',
    500: '#5f5aec',
    950: '#000000',
  },
}
SCSS
$custom: #5f5aec;
$custom-light: #9a89f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5aec",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 242.055,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.55857,
    "c": 0.21301,
    "h": 278.5
  },
  "luminance": 0.15801
}

Semantic roles & 50–950 ramp

primary
#5F5AEC
secondary
#E9EBB7
accent
#DC0AD4
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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