#5F267D#5F267D

#5F267D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.145 H 311.6°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5F267D
RGBrgb(95, 38, 125)
HSLhsl(279, 53%, 32%)
HSVhsv(279, 70%, 49%)
CMYKcmyk(24%, 69.6%, 0%, 51%)
CIE-LABlab(27.57, 41.04, -38.45)
CIE-LCHlch(27.57, 56.24, 316.86°)
OKLaboklab(39.36% 0.0965 -0.1085)
OKLCHoklch(39.36% 0.145 311.6)
XYZxyz(9.1134, 5.3000, 19.9410)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F267D #447D26
analogous
#33267D #5F267D #7D2670
triadic
#5F267D #7D5F26 #267D5F
tetradic
#5F267D #7D3326 #447D26 #26707D
square
#5F267D #7D3326 #447D26 #26707D
split-complementary
#5F267D #707D26 #267D33
monochromatic
#18091F #3B184E #5F267D #8334AC #A153CB

Accessibility & contrast

On white

10.19
#5F267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5F267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F267D
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F267D#FFFFFF#000000##FFFFFF
##5F267D1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#1D427B
Tritanopia (blue-blind)
#5B384E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f267d;
/* rgb */ color: rgb(95, 38, 125);
/* oklch */ color: oklch(39.4% 0.145 311.6);
Tailwind
colors: {
  custom: {
    50: '#9065a3',
    500: '#5f267d',
    950: '#000000',
  },
}
SCSS
$custom: #5f267d;
$custom-light: #9065a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f267d",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 279.31,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39358,
    "c": 0.14519,
    "h": 311.6
  },
  "luminance": 0.053
}

Semantic roles & 50–950 ramp

primary
#5F267D
secondary
#71AF50
accent
#DD4B7D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F267D

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

Preview Lab → · Contrast checker → · Palette generator →

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