#5F30BD#5F30BD

#5F30BD is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.204 H 291.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5F30BD
RGBrgb(95, 48, 189)
HSLhsl(260, 59%, 46%)
HSVhsv(260, 75%, 74%)
CMYKcmyk(49.7%, 74.6%, 0%, 25.9%)
CIE-LABlab(34.44, 52.55, -66.23)
CIE-LCHlch(34.44, 84.55, 308.43°)
OKLaboklab(45.84% 0.0744 -0.1902)
OKLCHoklch(45.84% 0.204 291.4)
XYZxyz(14.9590, 8.2203, 48.9327)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F30BD #8EBD30
analogous
#3048BD #5F30BD #A630BD
triadic
#5F30BD #BD5F30 #30BD5F
tetradic
#5F30BD #BD3048 #8EBD30 #30BDA6
square
#5F30BD #BD3048 #8EBD30 #30BDA6
split-complementary
#5F30BD #BDA630 #48BD30
monochromatic
#2E175B #46248C #5F30BD #8056D4 #A587E0

Accessibility & contrast

On white

7.94
#5F30BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F30BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F30BD
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F30BD#FFFFFF#000000##FFFFFF
##5F30BD1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#3F5674
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f30bd;
/* rgb */ color: rgb(95, 48, 189);
/* oklch */ color: oklch(45.8% 0.204 291.4);
Tailwind
colors: {
  custom: {
    50: '#966dd2',
    500: '#5f30bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f30bd;
$custom-light: #966dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f30bd",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 189
  },
  "hsl": {
    "h": 260,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45835,
    "c": 0.20421,
    "h": 291.4
  },
  "luminance": 0.08221
}

Semantic roles & 50–950 ramp

primary
#5F30BD
secondary
#B1CA7F
accent
#E345AE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F30BD

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

Preview Lab → · Contrast checker → · Palette generator →

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