#4B197E#4B197E

#4B197E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.157 H 300.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#4B197E
RGBrgb(75, 25, 126)
HSLhsl(270, 67%, 30%)
HSVhsv(270, 80%, 49%)
CMYKcmyk(40.5%, 80.2%, 0%, 50.6%)
CIE-LABlab(22.64, 43.15, -47.21)
CIE-LCHlch(22.64, 63.96, 312.43°)
OKLaboklab(35.28% 0.0805 -0.1349)
OKLCHoklch(35.28% 0.157 300.8)
XYZxyz(7.0142, 3.6974, 20.0787)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B197E #4C7E19
analogous
#191A7E #4B197E #7E197E
triadic
#4B197E #7E4B19 #197E4B
tetradic
#4B197E #7E191A #4C7E19 #197E7E
square
#4B197E #7E191A #4C7E19 #197E7E
split-complementary
#4B197E #7E7E19 #1A7E19
monochromatic
#0F051A #2D0F4B #4B197E #6923B1 #883AD8

Accessibility & contrast

On white

12.07
#4B197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4B197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B197E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B197E#FFFFFF#000000##FFFFFF
##4B197E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#3F344B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b197e;
/* rgb */ color: rgb(75, 25, 126);
/* oklch */ color: oklch(35.3% 0.157 300.8);
Tailwind
colors: {
  custom: {
    50: '#835ca4',
    500: '#4b197e',
    950: '#000000',
  },
}
SCSS
$custom: #4b197e;
$custom-light: #835ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b197e",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 269.703,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35275,
    "c": 0.15709,
    "h": 300.8
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#4B197E
secondary
#7AB241
accent
#EA3E95
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B197E

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

Preview Lab → · Contrast checker → · Palette generator →

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