#5F30BC#5F30BC

#5F30BC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.203 H 291.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5F30BC
RGBrgb(95, 48, 188)
HSLhsl(260, 59%, 46%)
HSVhsv(260, 74%, 74%)
CMYKcmyk(49.5%, 74.5%, 0%, 26.3%)
CIE-LABlab(34.35, 52.28, -65.79)
CIE-LCHlch(34.35, 84.03, 308.47°)
OKLaboklab(45.75% 0.0747 -0.1889)
OKLCHoklch(45.75% 0.203 291.6)
XYZxyz(14.8508, 8.1771, 48.3630)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F30BC #8DBC30
analogous
#3047BC #5F30BC #A530BC
triadic
#5F30BC #BC5F30 #30BC5F
tetradic
#5F30BC #BC3047 #8DBC30 #30BCA5
square
#5F30BC #BC3047 #8DBC30 #30BCA5
split-complementary
#5F30BC #BCA530 #47BC30
monochromatic
#2E175A #46248B #5F30BC #8055D4 #A486E0

Accessibility & contrast

On white

7.97
#5F30BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F30BC
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F30BC#FFFFFF#000000##FFFFFF
##5F30BC1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#405674
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f30bc;
/* rgb */ color: rgb(95, 48, 188);
/* oklch */ color: oklch(45.7% 0.203 291.6);
Tailwind
colors: {
  custom: {
    50: '#956dd1',
    500: '#5f30bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f30bc;
$custom-light: #956dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f30bc",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 188
  },
  "hsl": {
    "h": 260.143,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45746,
    "c": 0.20309,
    "h": 291.6
  },
  "luminance": 0.08178
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F30BC

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

Preview Lab → · Contrast checker → · Palette generator →

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