#5F30AF#5F30AF

#5F30AF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.188 H 294.4°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#5F30AF
RGBrgb(95, 48, 175)
HSLhsl(262, 57%, 44%)
HSVhsv(262, 73%, 69%)
CMYKcmyk(45.7%, 72.6%, 0%, 31.4%)
CIE-LABlab(33.23, 48.78, -59.92)
CIE-LCHlch(33.23, 77.26, 309.15°)
OKLaboklab(44.61% 0.0777 -0.1716)
OKLCHoklch(44.61% 0.188 294.4)
XYZxyz(13.5120, 7.6416, 41.3122)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F30AF #80AF30
analogous
#3040AF #5F30AF #9E30AF
triadic
#5F30AF #AF5F30 #30AF5F
tetradic
#5F30AF #AF3040 #80AF30 #30AF9E
square
#5F30AF #AF3040 #80AF30 #30AF9E
split-complementary
#5F30AF #AF9E30 #40AF30
monochromatic
#2B164F #45237F #5F30AF #7D4ECE #A17EDC

Accessibility & contrast

On white

8.31
#5F30AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5F30AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F30AF
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F30AF#FFFFFF#000000##FFFFFF
##5F30AF1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#48516C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f30af;
/* rgb */ color: rgb(95, 48, 175);
/* oklch */ color: oklch(44.6% 0.188 294.4);
Tailwind
colors: {
  custom: {
    50: '#946dc8',
    500: '#5f30af',
    950: '#000000',
  },
}
SCSS
$custom: #5f30af;
$custom-light: #946dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f30af",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 175
  },
  "hsl": {
    "h": 262.205,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44606,
    "c": 0.1884,
    "h": 294.4
  },
  "luminance": 0.07642
}

Semantic roles & 50–950 ramp

primary
#5F30AF
secondary
#A8C476
accent
#E048A8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F30AF

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

Preview Lab → · Contrast checker → · Palette generator →

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