#5F30AA#5F30AA

#5F30AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.183 H 295.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5F30AA
RGBrgb(95, 48, 170)
HSLhsl(263, 56%, 43%)
HSVhsv(263, 72%, 67%)
CMYKcmyk(44.1%, 71.8%, 0%, 33.3%)
CIE-LABlab(32.81, 47.44, -57.61)
CIE-LCHlch(32.81, 74.63, 309.47°)
OKLaboklab(44.18% 0.0787 -0.1648)
OKLCHoklch(44.18% 0.183 295.5)
XYZxyz(13.0300, 7.4488, 38.7737)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F30AA #7BAA30
analogous
#303EAA #5F30AA #9C30AA
triadic
#5F30AA #AA5F30 #30AA5F
tetradic
#5F30AA #AA303E #7BAA30 #30AA9C
square
#5F30AA #AA303E #7BAA30 #30AA9C
split-complementary
#5F30AA #AA9C30 #3EAA30
monochromatic
#2A154B #44237A #5F30AA #7D4BCC #9F7BDA

Accessibility & contrast

On white

8.43
#5F30AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5F30AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F30AA
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F30AA#FFFFFF#000000##FFFFFF
##5F30AA1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#4B4F6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f30aa;
/* rgb */ color: rgb(95, 48, 170);
/* oklch */ color: oklch(44.2% 0.183 295.5);
Tailwind
colors: {
  custom: {
    50: '#936cc4',
    500: '#5f30aa',
    950: '#000000',
  },
}
SCSS
$custom: #5f30aa;
$custom-light: #936cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f30aa",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 263.115,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44181,
    "c": 0.18269,
    "h": 295.5
  },
  "luminance": 0.07449
}

Semantic roles & 50–950 ramp

primary
#5F30AA
secondary
#A4C274
accent
#DF49A5
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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