#5F267A#5F267A

#5F267A is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.1% C 0.142 H 312.9°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5F267A
RGBrgb(95, 38, 122)
HSLhsl(281, 53%, 31%)
HSVhsv(281, 69%, 48%)
CMYKcmyk(22.1%, 68.9%, 0%, 52.2%)
CIE-LABlab(27.36, 40.34, -36.89)
CIE-LCHlch(27.36, 54.67, 317.56°)
OKLaboklab(39.14% 0.0967 -0.1039)
OKLCHoklch(39.14% 0.142 312.9)
XYZxyz(8.9247, 5.2245, 18.9469)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F267A #417A26
analogous
#35267A #5F267A #7A266B
triadic
#5F267A #7A5F26 #267A5F
tetradic
#5F267A #7A3526 #417A26 #266B7A
square
#5F267A #7A3526 #417A26 #266B7A
split-complementary
#5F267A #6B7A26 #267A35
monochromatic
#16091D #3B174B #5F267A #8335A9 #A351C9

Accessibility & contrast

On white

10.27
#5F267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F267A
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F267A#FFFFFF#000000##FFFFFF
##5F267A1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#204278
Tritanopia (blue-blind)
#5C374C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f267a;
/* rgb */ color: rgb(95, 38, 122);
/* oklch */ color: oklch(39.1% 0.142 312.9);
Tailwind
colors: {
  custom: {
    50: '#8f65a1',
    500: '#5f267a',
    950: '#000000',
  },
}
SCSS
$custom: #5f267a;
$custom-light: #8f65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f267a",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 280.714,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39142,
    "c": 0.14195,
    "h": 312.9
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#5F267A
secondary
#6DAC50
accent
#DC4C7A
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060F
muted
#7E7A7E

Preview Lab

Preview with #5F267A

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

Preview Lab → · Contrast checker → · Palette generator →

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