#5F30AE#5F30AE

#5F30AE is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.187 H 294.6°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5F30AE
RGBrgb(95, 48, 174)
HSLhsl(262, 57%, 44%)
HSVhsv(262, 72%, 68%)
CMYKcmyk(45.4%, 72.4%, 0%, 31.8%)
CIE-LABlab(33.14, 48.51, -59.46)
CIE-LCHlch(33.14, 76.74, 309.21°)
OKLaboklab(44.52% 0.0779 -0.1703)
OKLCHoklch(44.52% 0.187 294.6)
XYZxyz(13.4142, 7.6024, 40.7968)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F30AE #7FAE30
analogous
#3040AE #5F30AE #9E30AE
triadic
#5F30AE #AE5F30 #30AE5F
tetradic
#5F30AE #AE3040 #7FAE30 #30AE9E
square
#5F30AE #AE3040 #7FAE30 #30AE9E
split-complementary
#5F30AE #AE9E30 #40AE30
monochromatic
#2B164E #45237E #5F30AE #7D4DCE #A07DDB

Accessibility & contrast

On white

8.33
#5F30AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5F30AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F30AE
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F30AE#FFFFFF#000000##FFFFFF
##5F30AE1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#49506C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f30ae;
/* rgb */ color: rgb(95, 48, 174);
/* oklch */ color: oklch(44.5% 0.187 294.6);
Tailwind
colors: {
  custom: {
    50: '#946dc7',
    500: '#5f30ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f30ae;
$custom-light: #946dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f30ae",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 174
  },
  "hsl": {
    "h": 262.381,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4452,
    "c": 0.18726,
    "h": 294.6
  },
  "luminance": 0.07603
}

Semantic roles & 50–950 ramp

primary
#5F30AE
secondary
#A7C476
accent
#E048A7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F30AE

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

Preview Lab → · Contrast checker → · Palette generator →

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