#4A31C6#4A31C6

#4A31C6 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.215 H 280.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#4A31C6
RGBrgb(74, 49, 198)
HSLhsl(250, 60%, 48%)
HSVhsv(250, 75%, 78%)
CMYKcmyk(62.6%, 75.3%, 0%, 22.4%)
CIE-LABlab(33.41, 51.78, -73.28)
CIE-LCHlch(33.41, 89.73, 305.25°)
OKLaboklab(44.88% 0.0409 -0.2114)
OKLCHoklch(44.88% 0.215 280.9)
XYZxyz(14.1122, 7.7286, 54.1632)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31C6 #ADC631
analogous
#3162C6 #4A31C6 #9431C6
triadic
#4A31C6 #C64A31 #31C64A
tetradic
#4A31C6 #C63162 #ADC631 #31C694
square
#4A31C6 #C63162 #ADC631 #31C694
split-complementary
#4A31C6 #C69431 #62C631
monochromatic
#251964 #382595 #4A31C6 #725DD7 #9D8EE3

Accessibility & contrast

On white

8.25
#4A31C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4A31C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31C6
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31C6#FFFFFF#000000##FFFFFF
##4A31C61.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CA
Deuteranopia (green-blind)
#0049C3
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4a31c6;
/* rgb */ color: rgb(74, 49, 198);
/* oklch */ color: oklch(44.9% 0.215 280.9);
Tailwind
colors: {
  custom: {
    50: '#8c6dd9',
    500: '#4a31c6',
    950: '#000000',
  },
}
SCSS
$custom: #4a31c6;
$custom-light: #8c6dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31c6",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 250.067,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4488,
    "c": 0.21534,
    "h": 280.9
  },
  "luminance": 0.0773
}

Semantic roles & 50–950 ramp

primary
#4A31C6
secondary
#C1CE85
accent
#E344C9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4A31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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