#4B31B3#4B31B3

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

Color values

HEX#4B31B3
RGBrgb(75, 49, 179)
HSLhsl(252, 57%, 45%)
HSVhsv(252, 73%, 70%)
CMYKcmyk(58.1%, 72.6%, 0%, 29.8%)
CIE-LABlab(31.68, 46.23, -64.91)
CIE-LCHlch(31.68, 79.69, 305.46°)
OKLaboklab(43.13% 0.0467 -0.1869)
OKLCHoklch(43.13% 0.193 284)
XYZxyz(12.1342, 6.9464, 43.3405)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B31B3 #99B331
analogous
#3158B3 #4B31B3 #8C31B3
triadic
#4B31B3 #B34B31 #31B34B
tetradic
#4B31B3 #B33158 #99B331 #31B38C
square
#4B31B3 #B33158 #99B331 #31B38C
split-complementary
#4B31B3 #B38C31 #58B331
monochromatic
#231753 #372483 #4B31B3 #6B52D0 #9482DD

Accessibility & contrast

On white

8.79
#4B31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4B31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B31B3
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B31B3#FFFFFF#000000##FFFFFF
##4B31B31.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0046B1
Tritanopia (blue-blind)
#10546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4b31b3;
/* rgb */ color: rgb(75, 49, 179);
/* oklch */ color: oklch(43.1% 0.193 284.0);
Tailwind
colors: {
  custom: {
    50: '#896ccb',
    500: '#4b31b3',
    950: '#000000',
  },
}
SCSS
$custom: #4b31b3;
$custom-light: #896ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#4b31b3",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 252,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43134,
    "c": 0.19267,
    "h": 284
  },
  "luminance": 0.06947
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4B31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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