#5F269F#5F269F

#5F269F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.182 H 299.9°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5F269F
RGBrgb(95, 38, 159)
HSLhsl(268, 61%, 39%)
HSVhsv(268, 76%, 62%)
CMYKcmyk(40.3%, 76.1%, 0%, 37.6%)
CIE-LABlab(30.21, 49.32, -55.21)
CIE-LCHlch(30.21, 74.03, 311.77°)
OKLaboklab(42.06% 0.0906 -0.1577)
OKLCHoklch(42.06% 0.182 299.9)
XYZxyz(11.6689, 6.3222, 33.3997)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F269F #669F26
analogous
#262A9F #5F269F #9B269F
triadic
#5F269F #9F5F26 #269F5F
tetradic
#5F269F #9F262A #669F26 #269F9B
square
#5F269F #9F262A #669F26 #269F9B
split-complementary
#5F269F #9F9B26 #2A9F26
monochromatic
#240E3C #411A6E #5F269F #7D34CE #9C65DA

Accessibility & contrast

On white

9.27
#5F269F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F269F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F269F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F269F#FFFFFF#000000##FFFFFF
##5F269F1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#504561
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f269f;
/* rgb */ color: rgb(95, 38, 159);
/* oklch */ color: oklch(42.1% 0.182 299.9);
Tailwind
colors: {
  custom: {
    50: '#9366bc',
    500: '#5f269f',
    950: '#000000',
  },
}
SCSS
$custom: #5f269f;
$custom-light: #9366bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f269f",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 159
  },
  "hsl": {
    "h": 268.264,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4206,
    "c": 0.1819,
    "h": 299.9
  },
  "luminance": 0.06322
}

Semantic roles & 50–950 ramp

primary
#5F269F
secondary
#93C061
accent
#E54399
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F269F

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

Preview Lab → · Contrast checker → · Palette generator →

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