#5F27A2#5F27A2

#5F27A2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.184 H 298.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5F27A2
RGBrgb(95, 39, 162)
HSLhsl(267, 61%, 39%)
HSVhsv(267, 76%, 64%)
CMYKcmyk(41.4%, 75.9%, 0%, 36.5%)
CIE-LABlab(30.62, 49.63, -56.36)
CIE-LCHlch(30.62, 75.09, 311.37°)
OKLaboklab(42.43% 0.089 -0.1611)
OKLCHoklch(42.43% 0.184 298.9)
XYZxyz(11.9648, 6.4924, 34.7982)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F27A2 #6AA227
analogous
#272DA2 #5F27A2 #9D27A2
triadic
#5F27A2 #A25F27 #27A25F
tetradic
#5F27A2 #A2272D #6AA227 #27A29D
square
#5F27A2 #A2272D #6AA227 #27A29D
split-complementary
#5F27A2 #A29D27 #2DA227
monochromatic
#250F3F #421B71 #5F27A2 #7C37CF #9D69DB

Accessibility & contrast

On white

9.14
#5F27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5F27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F27A2
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F27A2#FFFFFF#000000##FFFFFF
##5F27A21.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#4F4763
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f27a2;
/* rgb */ color: rgb(95, 39, 162);
/* oklch */ color: oklch(42.4% 0.184 298.9);
Tailwind
colors: {
  custom: {
    50: '#9367be',
    500: '#5f27a2',
    950: '#000000',
  },
}
SCSS
$custom: #5f27a2;
$custom-light: #9367be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f27a2",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 267.317,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42428,
    "c": 0.18404,
    "h": 298.9
  },
  "luminance": 0.06493
}

Semantic roles & 50–950 ramp

primary
#5F27A2
secondary
#97C164
accent
#E4439B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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