#4B34A2#4B34A2

#4B34A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.0% C 0.168 H 286.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4B34A2
RGBrgb(75, 52, 162)
HSLhsl(253, 51%, 42%)
HSVhsv(253, 68%, 64%)
CMYKcmyk(53.7%, 67.9%, 0%, 36.5%)
CIE-LABlab(30.78, 39.39, -56.19)
CIE-LCHlch(30.78, 68.62, 305.03°)
OKLaboklab(42.03% 0.0472 -0.1614)
OKLCHoklch(42.03% 0.168 286.3)
XYZxyz(10.6493, 6.5599, 34.8805)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B34A2 #8BA234
analogous
#3454A2 #4B34A2 #8234A2
triadic
#4B34A2 #A24B34 #34A24B
tetradic
#4B34A2 #A23454 #8BA234 #34A282
square
#4B34A2 #A23454 #8BA234 #34A282
split-complementary
#4B34A2 #A28234 #54A234
monochromatic
#201645 #362574 #4B34A2 #664DC6 #8E7CD5

Accessibility & contrast

On white

9.08
#4B34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4B34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B34A2
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B34A2#FFFFFF#000000##FFFFFF
##4B34A21.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#285066
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4b34a2;
/* rgb */ color: rgb(75, 52, 162);
/* oklch */ color: oklch(42.0% 0.168 286.3);
Tailwind
colors: {
  custom: {
    50: '#866dbe',
    500: '#4b34a2',
    950: '#000000',
  },
}
SCSS
$custom: #4b34a2;
$custom-light: #866dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4b34a2",
  "rgb": {
    "r": 75,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 252.545,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42027,
    "c": 0.16813,
    "h": 286.3
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#4B34A2
secondary
#AEBE74
accent
#DB4DBD
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4B34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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