#5B267F#5B267F

#5B267F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.146 H 308.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5B267F
RGBrgb(91, 38, 127)
HSLhsl(276, 54%, 32%)
HSVhsv(276, 70%, 50%)
CMYKcmyk(28.3%, 70.1%, 0%, 50.2%)
CIE-LABlab(27.14, 40.58, -40.44)
CIE-LCHlch(27.14, 57.29, 315.10°)
OKLaboklab(38.97% 0.0907 -0.1145)
OKLCHoklch(38.97% 0.146 308.4)
XYZxyz(8.8375, 5.1428, 20.6017)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B267F #4A7F26
analogous
#2E267F #5B267F #7F2677
triadic
#5B267F #7F5B26 #267F5B
tetradic
#5B267F #7F2E26 #4A7F26 #26777F
square
#5B267F #7F2E26 #4A7F26 #26777F
split-complementary
#5B267F #777F26 #267F2E
monochromatic
#170A21 #391850 #5B267F #7D34AE #9B54CC

Accessibility & contrast

On white

10.35
#5B267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5B267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B267F
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B267F#FFFFFF#000000##FFFFFF
##5B267F1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#13417D
Tritanopia (blue-blind)
#55394F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b267f;
/* rgb */ color: rgb(91, 38, 127);
/* oklch */ color: oklch(39.0% 0.146 308.4);
Tailwind
colors: {
  custom: {
    50: '#8d65a5',
    500: '#5b267f',
    950: '#000000',
  },
}
SCSS
$custom: #5b267f;
$custom-light: #8d65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b267f",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 275.73,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38969,
    "c": 0.14602,
    "h": 308.4
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#5B267F
secondary
#77B051
accent
#DD4A86
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B267F

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

Preview Lab → · Contrast checker → · Palette generator →

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