#5F267C#5F267C

#5F267C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.144 H 312.1°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5F267C
RGBrgb(95, 38, 124)
HSLhsl(280, 53%, 32%)
HSVhsv(280, 69%, 49%)
CMYKcmyk(23.4%, 69.4%, 0%, 51.4%)
CIE-LABlab(27.50, 40.80, -37.93)
CIE-LCHlch(27.50, 55.71, 317.09°)
OKLaboklab(39.29% 0.0966 -0.107)
OKLCHoklch(39.29% 0.144 312.1)
XYZxyz(9.0499, 5.2746, 19.6062)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F267C #437C26
analogous
#34267C #5F267C #7C266E
triadic
#5F267C #7C5F26 #267C5F
tetradic
#5F267C #7C3426 #437C26 #266E7C
square
#5F267C #7C3426 #437C26 #266E7C
split-complementary
#5F267C #6E7C26 #267C34
monochromatic
#17091E #3B184D #5F267C #8334AB #A252CA

Accessibility & contrast

On white

10.22
#5F267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F267C
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F267C#FFFFFF#000000##FFFFFF
##5F267C1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f267c;
/* rgb */ color: rgb(95, 38, 124);
/* oklch */ color: oklch(39.3% 0.144 312.1);
Tailwind
colors: {
  custom: {
    50: '#8f65a2',
    500: '#5f267c',
    950: '#000000',
  },
}
SCSS
$custom: #5f267c;
$custom-light: #8f65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f267c",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 279.767,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39286,
    "c": 0.1441,
    "h": 312.1
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#5F267C
secondary
#70AE50
accent
#DC4B7C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F267C

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

Preview Lab → · Contrast checker → · Palette generator →

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