#4B2799#4B2799

#4B2799 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.172 H 290.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4B2799
RGBrgb(75, 39, 153)
HSLhsl(259, 59%, 38%)
HSVhsv(259, 75%, 60%)
CMYKcmyk(51%, 74.5%, 0%, 40%)
CIE-LABlab(27.43, 43.84, -56.20)
CIE-LCHlch(27.43, 71.28, 307.96°)
OKLaboklab(39.39% 0.0609 -0.1614)
OKLCHoklch(39.39% 0.172 290.7)
XYZxyz(9.3753, 5.2464, 30.6495)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2799 #759927
analogous
#273C99 #4B2799 #842799
triadic
#4B2799 #994B27 #27994B
tetradic
#4B2799 #99273C #759927 #279984
square
#4B2799 #99273C #759927 #279984
split-complementary
#4B2799 #998427 #3C9927
monochromatic
#1B0E37 #331B68 #4B2799 #6333CA #8863D7

Accessibility & contrast

On white

10.25
#4B2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4B2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2799
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2799#FFFFFF#000000##FFFFFF
##4B27991.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#30465E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4b2799;
/* rgb */ color: rgb(75, 39, 153);
/* oklch */ color: oklch(39.4% 0.172 290.7);
Tailwind
colors: {
  custom: {
    50: '#8565b8',
    500: '#4b2799',
    950: '#000000',
  },
}
SCSS
$custom: #4b2799;
$custom-light: #8565b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2799",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 258.947,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39389,
    "c": 0.17249,
    "h": 290.7
  },
  "luminance": 0.05247
}

Semantic roles & 50–950 ramp

primary
#4B2799
secondary
#9FBD5F
accent
#E345B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4B2799

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

Preview Lab → · Contrast checker → · Palette generator →

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