#4B2797#4B2797

#4B2797 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.170 H 291.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4B2797
RGBrgb(75, 39, 151)
HSLhsl(259, 59%, 37%)
HSVhsv(259, 74%, 59%)
CMYKcmyk(50.3%, 74.2%, 0%, 40.8%)
CIE-LABlab(27.24, 43.27, -55.27)
CIE-LCHlch(27.24, 70.20, 308.06°)
OKLaboklab(39.21% 0.0614 -0.1587)
OKLCHoklch(39.21% 0.17 291.2)
XYZxyz(9.2115, 5.1809, 29.7868)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2797 #739727
analogous
#273B97 #4B2797 #832797
triadic
#4B2797 #974B27 #27974B
tetradic
#4B2797 #97273B #739727 #279783
square
#4B2797 #97273B #739727 #279783
split-complementary
#4B2797 #978327 #3B9727
monochromatic
#1B0E36 #331A66 #4B2797 #6334C8 #8762D6

Accessibility & contrast

On white

10.31
#4B2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4B2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2797
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2797#FFFFFF#000000##FFFFFF
##4B27971.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#32455D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4b2797;
/* rgb */ color: rgb(75, 39, 151);
/* oklch */ color: oklch(39.2% 0.170 291.2);
Tailwind
colors: {
  custom: {
    50: '#8565b7',
    500: '#4b2797',
    950: '#000000',
  },
}
SCSS
$custom: #4b2797;
$custom-light: #8565b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2797",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 259.286,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39205,
    "c": 0.17012,
    "h": 291.2
  },
  "luminance": 0.05181
}

Semantic roles & 50–950 ramp

primary
#4B2797
secondary
#9EBC5E
accent
#E246B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4B2797

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

Preview Lab → · Contrast checker → · Palette generator →

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