#5F42F3#5F42F3

#5F42F3 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 53.0% C 0.247 H 281.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5F42F3
RGBrgb(95, 66, 243)
HSLhsl(250, 88%, 61%)
HSVhsv(250, 73%, 95%)
CMYKcmyk(60.9%, 72.8%, 0%, 4.7%)
CIE-LABlab(42.46, 58.88, -84.11)
CIE-LCHlch(42.46, 102.67, 304.99°)
OKLaboklab(52.98% 0.0485 -0.2426)
OKLCHoklch(52.98% 0.247 281.3)
XYZxyz(22.8401, 12.7987, 86.0435)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F42F3 #D6F342
analogous
#427DF3 #5F42F3 #B842F3
triadic
#5F42F3 #F35F42 #42F35F
tetradic
#5F42F3 #F3427D #D6F342 #42F3B8
square
#5F42F3 #F3427D #D6F342 #42F3B8
split-complementary
#5F42F3 #F3B842 #7DF342
monochromatic
#260BAF #330FE9 #5F42F3 #907CF7 #C0B5FA

Accessibility & contrast

On white

5.90
#5F42F3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5F42F3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F42F3
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F42F3#FFFFFF#000000##FFFFFF
##5F42F31.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF8
Deuteranopia (green-blind)
#005EF0
Tritanopia (blue-blind)
#007497
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f42f3;
/* rgb */ color: rgb(95, 66, 243);
/* oklch */ color: oklch(53.0% 0.247 281.3);
Tailwind
colors: {
  custom: {
    50: '#9d7af8',
    500: '#5f42f3',
    950: '#000000',
  },
}
SCSS
$custom: #5f42f3;
$custom-light: #9d7af8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f42f3",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 243
  },
  "hsl": {
    "h": 249.831,
    "s": 88.06,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52977,
    "c": 0.24741,
    "h": 281.3
  },
  "luminance": 0.128
}

Semantic roles & 50–950 ramp

primary
#5F42F3
secondary
#DFEAA7
accent
#E501BF
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5F42F3

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

Preview Lab → · Contrast checker → · Palette generator →

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