#4B2697#4B2697

#4B2697 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.171 H 291.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4B2697
RGBrgb(75, 38, 151)
HSLhsl(260, 60%, 37%)
HSVhsv(260, 75%, 59%)
CMYKcmyk(50.3%, 74.8%, 0%, 40.8%)
CIE-LABlab(27.06, 43.78, -55.57)
CIE-LCHlch(27.06, 70.75, 308.23°)
OKLaboklab(39.08% 0.0623 -0.1595)
OKLCHoklch(39.08% 0.171 291.3)
XYZxyz(9.1791, 5.1161, 29.7760)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2697 #729726
analogous
#263A97 #4B2697 #842697
triadic
#4B2697 #974B26 #26974B
tetradic
#4B2697 #97263A #729726 #269784
square
#4B2697 #97263A #729726 #269784
split-complementary
#4B2697 #978426 #3A9726
monochromatic
#1A0D35 #331A66 #4B2697 #6332C8 #8760D7

Accessibility & contrast

On white

10.38
#4B2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4B2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2697
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2697#FFFFFF#000000##FFFFFF
##4B26971.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#32445C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4b2697;
/* rgb */ color: rgb(75, 38, 151);
/* oklch */ color: oklch(39.1% 0.171 291.3);
Tailwind
colors: {
  custom: {
    50: '#8564b7',
    500: '#4b2697',
    950: '#000000',
  },
}
SCSS
$custom: #4b2697;
$custom-light: #8564b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2697",
  "rgb": {
    "r": 75,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 259.646,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39077,
    "c": 0.17124,
    "h": 291.3
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#4B2697
secondary
#9DBC5C
accent
#E345AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4B2697

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

Preview Lab → · Contrast checker → · Palette generator →

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