#4A31B3#4A31B3

#4A31B3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.193 H 283.6°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4A31B3
RGBrgb(74, 49, 179)
HSLhsl(252, 57%, 45%)
HSVhsv(252, 73%, 70%)
CMYKcmyk(58.7%, 72.6%, 0%, 29.8%)
CIE-LABlab(31.59, 46.08, -65.06)
CIE-LCHlch(31.59, 79.73, 305.31°)
OKLaboklab(43.05% 0.0452 -0.1874)
OKLCHoklch(43.05% 0.193 283.6)
XYZxyz(12.0565, 6.9064, 43.3368)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31B3 #9AB331
analogous
#3159B3 #4A31B3 #8B31B3
triadic
#4A31B3 #B34A31 #31B34A
tetradic
#4A31B3 #B33159 #9AB331 #31B38B
square
#4A31B3 #B33159 #9AB331 #31B38B
split-complementary
#4A31B3 #B38B31 #59B331
monochromatic
#221753 #362483 #4A31B3 #6A52D0 #9382DD

Accessibility & contrast

On white

8.82
#4A31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4A31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31B3
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31B3#FFFFFF#000000##FFFFFF
##4A31B31.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0046B1
Tritanopia (blue-blind)
#0A556F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a31b3;
/* rgb */ color: rgb(74, 49, 179);
/* oklch */ color: oklch(43.0% 0.193 283.6);
Tailwind
colors: {
  custom: {
    50: '#886ccb',
    500: '#4a31b3',
    950: '#000000',
  },
}
SCSS
$custom: #4a31b3;
$custom-light: #886ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31b3",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 251.538,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43047,
    "c": 0.19279,
    "h": 283.6
  },
  "luminance": 0.06907
}

Semantic roles & 50–950 ramp

primary
#4A31B3
secondary
#B7C67A
accent
#E048C3
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4A31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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