#5F267B#5F267B

#5F267B is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.2% C 0.143 H 312.5°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#5F267B
RGBrgb(95, 38, 123)
HSLhsl(280, 53%, 32%)
HSVhsv(280, 69%, 48%)
CMYKcmyk(22.8%, 69.1%, 0%, 51.8%)
CIE-LABlab(27.43, 40.57, -37.41)
CIE-LCHlch(27.43, 55.19, 317.32°)
OKLaboklab(39.21% 0.0966 -0.1054)
OKLCHoklch(39.21% 0.143 312.5)
XYZxyz(8.9869, 5.2494, 19.2749)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F267B #427B26
analogous
#35267B #5F267B #7B266D
triadic
#5F267B #7B5F26 #267B5F
tetradic
#5F267B #7B3526 #427B26 #266D7B
square
#5F267B #7B3526 #427B26 #266D7B
split-complementary
#5F267B #6D7B26 #267B35
monochromatic
#17091D #3B184C #5F267B #8334AA #A252CA

Accessibility & contrast

On white

10.24
#5F267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F267B
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F267B#FFFFFF#000000##FFFFFF
##5F267B1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#1F4279
Tritanopia (blue-blind)
#5C374D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f267b;
/* rgb */ color: rgb(95, 38, 123);
/* oklch */ color: oklch(39.2% 0.143 312.5);
Tailwind
colors: {
  custom: {
    50: '#8f65a2',
    500: '#5f267b',
    950: '#000000',
  },
}
SCSS
$custom: #5f267b;
$custom-light: #8f65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f267b",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 280.235,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39214,
    "c": 0.14303,
    "h": 312.5
  },
  "luminance": 0.05249
}

Semantic roles & 50–950 ramp

primary
#5F267B
secondary
#6EAD50
accent
#DC4C7B
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F267B

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

Preview Lab → · Contrast checker → · Palette generator →

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