#5F5AE6#5F5AE6

#5F5AE6 is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.4% C 0.205 H 278.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5F5AE6
RGBrgb(95, 90, 230)
HSLhsl(242, 74%, 63%)
HSVhsv(242, 61%, 90%)
CMYKcmyk(58.7%, 60.9%, 0%, 9.8%)
CIE-LABlab(46.25, 41.67, -70.57)
CIE-LCHlch(46.25, 81.96, 300.56°)
OKLaboklab(55.38% 0.0318 -0.2029)
OKLCHoklch(55.38% 0.205 278.9)
XYZxyz(22.6539, 15.4568, 76.6373)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AE6 #E1E65A
analogous
#5A9BE6 #5F5AE6 #A55AE6
triadic
#5F5AE6 #E65F5A #5AE65F
tetradic
#5F5AE6 #E65A9B #E1E65A #5AE6A5
square
#5F5AE6 #E65A9B #E1E65A #5AE6A5
split-complementary
#5F5AE6 #E6A55A #9BE65A
monochromatic
#1F1AAC #2B25DE #5F5AE6 #938FEE #C6C4F6

Accessibility & contrast

On white

5.13
#5F5AE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5F5AE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AE6
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AE6#FFFFFF#000000##FFFFFF
##5F5AE61.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#0068E3
Tritanopia (blue-blind)
#007C97
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5ae6;
/* rgb */ color: rgb(95, 90, 230);
/* oklch */ color: oklch(55.4% 0.205 278.9);
Tailwind
colors: {
  custom: {
    50: '#9989ef',
    500: '#5f5ae6',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ae6;
$custom-light: #9989ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ae6",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 230
  },
  "hsl": {
    "h": 242.143,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55379,
    "c": 0.20539,
    "h": 278.9
  },
  "luminance": 0.15458
}

Semantic roles & 50–950 ramp

primary
#5F5AE6
secondary
#E5E7B5
accent
#D610CF
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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