#5F30B6#5F30B6

#5F30B6 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.196 H 292.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5F30B6
RGBrgb(95, 48, 182)
HSLhsl(261, 58%, 45%)
HSVhsv(261, 74%, 71%)
CMYKcmyk(47.8%, 73.6%, 0%, 28.6%)
CIE-LABlab(33.82, 50.66, -63.10)
CIE-LCHlch(33.82, 80.92, 308.76°)
OKLaboklab(45.21% 0.0761 -0.181)
OKLCHoklch(45.21% 0.196 292.8)
XYZxyz(14.2174, 7.9237, 45.0272)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F30B6 #87B630
analogous
#3044B6 #5F30B6 #A230B6
triadic
#5F30B6 #B65F30 #30B65F
tetradic
#5F30B6 #B63044 #87B630 #30B6A2
square
#5F30B6 #B63044 #87B630 #30B6A2
split-complementary
#5F30B6 #B6A230 #44B630
monochromatic
#2C1655 #462386 #5F30B6 #7F52D1 #A282DE

Accessibility & contrast

On white

8.12
#5F30B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5F30B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F30B6
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F30B6#FFFFFF#000000##FFFFFF
##5F30B61.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#445470
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f30b6;
/* rgb */ color: rgb(95, 48, 182);
/* oklch */ color: oklch(45.2% 0.196 292.8);
Tailwind
colors: {
  custom: {
    50: '#956dcd',
    500: '#5f30b6',
    950: '#000000',
  },
}
SCSS
$custom: #5f30b6;
$custom-light: #956dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f30b6",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 261.045,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45214,
    "c": 0.19634,
    "h": 292.8
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#5F30B6
secondary
#ACC77B
accent
#E146AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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