#5F368E#5F368E

#5F368E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.141 H 302.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5F368E
RGBrgb(95, 54, 142)
HSLhsl(268, 45%, 38%)
HSVhsv(268, 62%, 56%)
CMYKcmyk(33.1%, 62%, 0%, 44.3%)
CIE-LABlab(31.86, 36.77, -42.14)
CIE-LCHlch(31.86, 55.92, 311.11°)
OKLaboklab(42.84% 0.0754 -0.1194)
OKLCHoklch(42.84% 0.141 302.3)
XYZxyz(10.9198, 7.0242, 26.3665)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F368E #658E36
analogous
#36398E #5F368E #8B368E
triadic
#5F368E #8E5F36 #368E5F
tetradic
#5F368E #8E3639 #658E36 #368E8B
square
#5F368E #8E3639 #658E36 #368E8B
split-complementary
#5F368E #8E8B36 #398E36
monochromatic
#241435 #412562 #5F368E #7D48B9 #9C74CA

Accessibility & contrast

On white

8.73
#5F368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5F368E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F368E
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F368E#FFFFFF#000000##FFFFFF
##5F368E1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A91
Deuteranopia (green-blind)
#1D4B8C
Tritanopia (blue-blind)
#56485D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f368e;
/* rgb */ color: rgb(95, 54, 142);
/* oklch */ color: oklch(42.8% 0.141 302.3);
Tailwind
colors: {
  custom: {
    50: '#906fb0',
    500: '#5f368e',
    950: '#000000',
  },
}
SCSS
$custom: #5f368e;
$custom-light: #906fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f368e",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 267.955,
    "s": 44.898,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42835,
    "c": 0.1412,
    "h": 302.3
  },
  "luminance": 0.07024
}

Semantic roles & 50–950 ramp

primary
#5F368E
secondary
#92B36D
accent
#D55398
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F368E

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

Preview Lab → · Contrast checker → · Palette generator →

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