#5F49CA#5F49CA

#5F49CA is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.4% C 0.191 H 285.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5F49CA
RGBrgb(95, 73, 202)
HSLhsl(250, 55%, 54%)
HSVhsv(250, 64%, 79%)
CMYKcmyk(53%, 63.9%, 0%, 20.8%)
CIE-LABlab(40.35, 42.97, -64.17)
CIE-LCHlch(40.35, 77.23, 303.81°)
OKLaboklab(50.4% 0.0496 -0.1842)
OKLCHoklch(50.4% 0.191 285.1)
XYZxyz(17.7593, 11.4613, 57.1421)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F49CA #B4CA49
analogous
#4974CA #5F49CA #A049CA
triadic
#5F49CA #CA5F49 #49CA5F
tetradic
#5F49CA #CA4974 #B4CA49 #49CAA0
square
#5F49CA #CA4974 #B4CA49 #49CAA0
split-complementary
#5F49CA #CAA049 #74CA49
monochromatic
#312276 #4430A6 #5F49CA #8978D8 #B2A8E6

Accessibility & contrast

On white

6.38
#5F49CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5F49CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F49CA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F49CA#FFFFFF#000000##FFFFFF
##5F49CA1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#336983
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f49ca;
/* rgb */ color: rgb(95, 73, 202);
/* oklch */ color: oklch(50.4% 0.191 285.1);
Tailwind
colors: {
  custom: {
    50: '#967ddb',
    500: '#5f49ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f49ca;
$custom-light: #967ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f49ca",
  "rgb": {
    "r": 95,
    "g": 73,
    "b": 202
  },
  "hsl": {
    "h": 250.233,
    "s": 54.894,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50396,
    "c": 0.19074,
    "h": 285.1
  },
  "luminance": 0.11462
}

Semantic roles & 50–950 ramp

primary
#5F49CA
secondary
#CAD39C
accent
#DE4AC5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F49CA

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

Preview Lab → · Contrast checker → · Palette generator →

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