#5B04FF#5B04FF

#5B04FF is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 49.5% C 0.294 H 281.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5B04FF
RGBrgb(91, 4, 255)
HSLhsl(261, 100%, 51%)
HSVhsv(261, 98%, 100%)
CMYKcmyk(64.3%, 98.4%, 0%, 0%)
CIE-LABlab(36.98, 80.48, -99.92)
CIE-LCHlch(36.98, 128.30, 308.85°)
OKLaboklab(49.5% 0.06 -0.288)
OKLCHoklch(49.5% 0.294 281.8)
XYZxyz(22.4021, 9.5292, 95.2471)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B04FF #A8FF04
analogous
#042AFF #5B04FF #D904FF
triadic
#5B04FF #FF5B04 #04FF5B
tetradic
#5B04FF #FF042A #A8FF04 #04FFD9
square
#5B04FF #FF042A #A8FF04 #04FFD9
split-complementary
#5B04FF #FFD904 #2AFF04
monochromatic
#2F0089 #4500C6 #5B04FF #8341FF #AB7EFF

Accessibility & contrast

On white

7.23
#5B04FF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5B04FF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B04FF
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B04FF#FFFFFF#000000##FFFFFF
##5B04FF1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EFF
Deuteranopia (green-blind)
#004FFB
Tritanopia (blue-blind)
#006996
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b04ff;
/* rgb */ color: rgb(91, 4, 255);
/* oklch */ color: oklch(49.5% 0.294 281.8);
Tailwind
colors: {
  custom: {
    50: '#a063ff',
    500: '#5b04ff',
    950: '#000000',
  },
}
SCSS
$custom: #5b04ff;
$custom-light: #a063ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b04ff",
  "rgb": {
    "r": 91,
    "g": 4,
    "b": 255
  },
  "hsl": {
    "h": 260.797,
    "s": 100,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49503,
    "c": 0.29414,
    "h": 281.8
  },
  "luminance": 0.09531
}

Semantic roles & 50–950 ramp

primary
#5B04FF
secondary
#C0E778
accent
#FF29B5
background
#FBF6FF
surface
#F6EBFF
border
#D0C6D7
text
#110718
muted
#807A86

Preview Lab

Preview with #5B04FF

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

Preview Lab → · Contrast checker → · Palette generator →

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