#5F6CF6#5F6CF6

#5F6CF6 is a mid, highly saturated blue. Relative luminance 0.198; OKLCH L 59.7% C 0.204 H 274.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5F6CF6
RGBrgb(95, 108, 246)
HSLhsl(235, 89%, 67%)
HSVhsv(235, 61%, 96%)
CMYKcmyk(61.4%, 56.1%, 0%, 3.5%)
CIE-LABlab(51.62, 36.04, -70.82)
CIE-LCHlch(51.62, 79.46, 296.97°)
OKLaboklab(59.71% 0.0155 -0.2035)
OKLCHoklch(59.71% 0.204 274.4)
XYZxyz(26.7110, 19.8097, 89.5870)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6CF6 #F6E95F
analogous
#5FB8F6 #5F6CF6 #9D5FF6
triadic
#5F6CF6 #F65F6C #6CF65F
tetradic
#5F6CF6 #F65FB8 #F6E95F #5FF69D
square
#5F6CF6 #F65FB8 #F6E95F #5FF69D
split-complementary
#5F6CF6 #F69D5F #B8F65F
monochromatic
#0C1CCF #2537F3 #5F6CF6 #99A1F9 #D3D6FD

Accessibility & contrast

On white

4.23
#5F6CF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5F6CF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F6CF6
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6CF6#FFFFFF#000000##000000
##5F6CF61.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FB
Deuteranopia (green-blind)
#0075F3
Tritanopia (blue-blind)
#008DA7
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f6cf6;
/* rgb */ color: rgb(95, 108, 246);
/* oklch */ color: oklch(59.7% 0.204 274.4);
Tailwind
colors: {
  custom: {
    50: '#9a96fa',
    500: '#5f6cf6',
    950: '#000000',
  },
}
SCSS
$custom: #5f6cf6;
$custom-light: #9a96fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6cf6",
  "rgb": {
    "r": 95,
    "g": 108,
    "b": 246
  },
  "hsl": {
    "h": 234.834,
    "s": 89.349,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59713,
    "c": 0.20411,
    "h": 274.4
  },
  "luminance": 0.19812
}

Semantic roles & 50–950 ramp

primary
#5F6CF6
secondary
#F1ECC0
accent
#D200E6
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5F6CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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