#5B00FF#5B00FF

#5B00FF is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 49.4% C 0.295 H 281.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5B00FF
RGBrgb(91, 0, 255)
HSLhsl(261, 100%, 50%)
HSVhsv(261, 100%, 100%)
CMYKcmyk(64.3%, 100%, 0%, 0%)
CIE-LABlab(36.82, 80.97, -100.19)
CIE-LCHlch(36.82, 128.82, 308.94°)
OKLaboklab(49.4% 0.0604 -0.2887)
OKLCHoklch(49.4% 0.295 281.8)
XYZxyz(22.3587, 9.4424, 95.2327)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B00FF #A4FF00
analogous
#0024FF #5B00FF #DB00FF
triadic
#5B00FF #FF5B00 #00FF5B
tetradic
#5B00FF #FF0024 #A4FF00 #00FFDB
square
#5B00FF #FF0024 #A4FF00 #00FFDB
split-complementary
#5B00FF #FFDB00 #24FF00
monochromatic
#2F0085 #4500C2 #5B00FF #823DFF #AA7AFF

Accessibility & contrast

On white

7.27
#5B00FF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B00FF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B00FF
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B00FF#FFFFFF#000000##FFFFFF
##5B00FF1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b00ff;
/* rgb */ color: rgb(91, 0, 255);
/* oklch */ color: oklch(49.4% 0.295 281.8);
Tailwind
colors: {
  custom: {
    50: '#a063ff',
    500: '#5b00ff',
    950: '#000000',
  },
}
SCSS
$custom: #5b00ff;
$custom-light: #a063ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b00ff",
  "rgb": {
    "r": 91,
    "g": 0,
    "b": 255
  },
  "hsl": {
    "h": 261.412,
    "s": 100,
    "l": 50
  },
  "oklch": {
    "l": 0.49396,
    "c": 0.29498,
    "h": 281.8
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#5B00FF
secondary
#BEE774
accent
#FF29B3
background
#FBF6FF
surface
#F6EBFF
border
#D0C6D7
text
#110618
muted
#807A86

Preview Lab

Preview with #5B00FF

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

Preview Lab → · Contrast checker → · Palette generator →

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