#5F42BC#5F42BC

#5F42BC is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.2% C 0.182 H 288.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5F42BC
RGBrgb(95, 66, 188)
HSLhsl(254, 48%, 50%)
HSVhsv(254, 65%, 74%)
CMYKcmyk(49.5%, 64.9%, 0%, 26.3%)
CIE-LABlab(37.77, 42.82, -60.20)
CIE-LCHlch(37.77, 73.88, 305.42°)
OKLaboklab(48.19% 0.058 -0.1725)
OKLCHoklch(48.19% 0.182 288.6)
XYZxyz(15.7420, 9.9595, 48.6601)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F42BC #9FBC42
analogous
#4262BC #5F42BC #9C42BC
triadic
#5F42BC #BC5F42 #42BC5F
tetradic
#5F42BC #BC4262 #9FBC42 #42BC9C
square
#5F42BC #BC4262 #9FBC42 #42BC9C
split-complementary
#5F42BC #BC9C42 #62BC42
monochromatic
#312261 #48328F #5F42BC #856FCC #AB9CDC

Accessibility & contrast

On white

7.02
#5F42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5F42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F42BC
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F42BC#FFFFFF#000000##FFFFFF
##5F42BC1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#3F6079
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f42bc;
/* rgb */ color: rgb(95, 66, 188);
/* oklch */ color: oklch(48.2% 0.182 288.6);
Tailwind
colors: {
  custom: {
    50: '#9478d1',
    500: '#5f42bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f42bc;
$custom-light: #9478d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f42bc",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 254.262,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48188,
    "c": 0.18201,
    "h": 288.6
  },
  "luminance": 0.0996
}

Semantic roles & 50–950 ramp

primary
#5F42BC
secondary
#BBC991
accent
#D850B7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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