#4A31C3#4A31C3

#4A31C3 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.6% C 0.212 H 281.3°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#4A31C3
RGBrgb(74, 49, 195)
HSLhsl(250, 60%, 48%)
HSVhsv(250, 75%, 76%)
CMYKcmyk(62.1%, 74.9%, 0%, 23.5%)
CIE-LABlab(33.12, 50.89, -72.00)
CIE-LCHlch(33.12, 88.17, 305.25°)
OKLaboklab(44.59% 0.0416 -0.2077)
OKLCHoklch(44.59% 0.212 281.3)
XYZxyz(13.7696, 7.5916, 52.3589)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31C3 #AAC331
analogous
#3161C3 #4A31C3 #9331C3
triadic
#4A31C3 #C34A31 #31C34A
tetradic
#4A31C3 #C33161 #AAC331 #31C393
square
#4A31C3 #C33161 #AAC331 #31C393
split-complementary
#4A31C3 #C39331 #61C331
monochromatic
#251861 #372592 #4A31C3 #705BD6 #9B8CE2

Accessibility & contrast

On white

8.34
#4A31C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4A31C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31C3
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31C3#FFFFFF#000000##FFFFFF
##4A31C31.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C7
Deuteranopia (green-blind)
#0048C0
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4a31c3;
/* rgb */ color: rgb(74, 49, 195);
/* oklch */ color: oklch(44.6% 0.212 281.3);
Tailwind
colors: {
  custom: {
    50: '#8b6cd6',
    500: '#4a31c3',
    950: '#000000',
  },
}
SCSS
$custom: #4a31c3;
$custom-light: #8b6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31c3",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 250.274,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44585,
    "c": 0.21183,
    "h": 281.3
  },
  "luminance": 0.07593
}

Semantic roles & 50–950 ramp

primary
#4A31C3
secondary
#C0CC83
accent
#E345C8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4A31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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