#4A31C5#4A31C5

#4A31C5 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.214 H 281.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#4A31C5
RGBrgb(74, 49, 197)
HSLhsl(250, 60%, 48%)
HSVhsv(250, 75%, 77%)
CMYKcmyk(62.4%, 75.1%, 0%, 22.7%)
CIE-LABlab(33.31, 51.48, -72.85)
CIE-LCHlch(33.31, 89.21, 305.25°)
OKLaboklab(44.78% 0.0411 -0.2102)
OKLCHoklch(44.78% 0.214 281.1)
XYZxyz(13.9972, 7.6826, 53.5578)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31C5 #ACC531
analogous
#3162C5 #4A31C5 #9431C5
triadic
#4A31C5 #C54A31 #31C54A
tetradic
#4A31C5 #C53162 #ACC531 #31C594
square
#4A31C5 #C53162 #ACC531 #31C594
split-complementary
#4A31C5 #C59431 #62C531
monochromatic
#251963 #382594 #4A31C5 #715DD7 #9C8EE3

Accessibility & contrast

On white

8.28
#4A31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4A31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31C5
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31C5#FFFFFF#000000##FFFFFF
##4A31C51.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C9
Deuteranopia (green-blind)
#0049C2
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4a31c5;
/* rgb */ color: rgb(74, 49, 197);
/* oklch */ color: oklch(44.8% 0.214 281.1);
Tailwind
colors: {
  custom: {
    50: '#8c6dd8',
    500: '#4a31c5',
    950: '#000000',
  },
}
SCSS
$custom: #4a31c5;
$custom-light: #8c6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31c5",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 250.135,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44782,
    "c": 0.21417,
    "h": 281.1
  },
  "luminance": 0.07684
}

Semantic roles & 50–950 ramp

primary
#4A31C5
secondary
#C1CD85
accent
#E344C8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4A31C5

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

Preview Lab → · Contrast checker → · Palette generator →

#4A31C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva