#4B29A2#4B29A2

#4B29A2 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.181 H 288.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#4B29A2
RGBrgb(75, 41, 162)
HSLhsl(257, 60%, 40%)
HSVhsv(257, 75%, 64%)
CMYKcmyk(53.7%, 74.7%, 0%, 36.5%)
CIE-LABlab(28.62, 45.41, -59.73)
CIE-LCHlch(28.62, 75.03, 307.24°)
OKLaboklab(40.48% 0.057 -0.1717)
OKLCHoklch(40.48% 0.181 288.4)
XYZxyz(10.2143, 5.6899, 34.7355)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B29A2 #80A229
analogous
#2943A2 #4B29A2 #8829A2
triadic
#4B29A2 #A24B29 #29A24B
tetradic
#4B29A2 #A22943 #80A229 #29A288
square
#4B29A2 #A22943 #80A229 #29A288
split-complementary
#4B29A2 #A28829 #43A229
monochromatic
#1E1040 #341D71 #4B29A2 #643BCD #8B6CDA

Accessibility & contrast

On white

9.82
#4B29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4B29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B29A2
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B29A2#FFFFFF#000000##FFFFFF
##4B29A21.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#294A63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4b29a2;
/* rgb */ color: rgb(75, 41, 162);
/* oklch */ color: oklch(40.5% 0.181 288.4);
Tailwind
colors: {
  custom: {
    50: '#8766bf',
    500: '#4b29a2',
    950: '#000000',
  },
}
SCSS
$custom: #4b29a2;
$custom-light: #8766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b29a2",
  "rgb": {
    "r": 75,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 256.86,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40483,
    "c": 0.18095,
    "h": 288.4
  },
  "luminance": 0.0569
}

Semantic roles & 50–950 ramp

primary
#4B29A2
secondary
#A7C067
accent
#E345B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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