#4B197C#4B197C

#4B197C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.155 H 301.6°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4B197C
RGBrgb(75, 25, 124)
HSLhsl(270, 66%, 29%)
HSVhsv(270, 80%, 49%)
CMYKcmyk(39.5%, 79.8%, 0%, 51.4%)
CIE-LABlab(22.47, 42.64, -46.23)
CIE-LCHlch(22.47, 62.90, 312.69°)
OKLaboklab(35.09% 0.0811 -0.132)
OKLCHoklch(35.09% 0.155 301.6)
XYZxyz(6.8865, 3.6463, 19.4059)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B197C #4A7C19
analogous
#1A197C #4B197C #7C197C
triadic
#4B197C #7C4B19 #197C4B
tetradic
#4B197C #7C1A19 #4A7C19 #197C7C
square
#4B197C #7C1A19 #4A7C19 #197C7C
split-complementary
#4B197C #7C7C19 #197C1A
monochromatic
#0F0519 #2C0F49 #4B197C #6A23AF #8938D7

Accessibility & contrast

On white

12.14
#4B197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4B197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B197C
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B197C#FFFFFF#000000##FFFFFF
##4B197C1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#40334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b197c;
/* rgb */ color: rgb(75, 25, 124);
/* oklch */ color: oklch(35.1% 0.155 301.6);
Tailwind
colors: {
  custom: {
    50: '#835ca3',
    500: '#4b197c',
    950: '#000000',
  },
}
SCSS
$custom: #4b197c;
$custom-light: #835ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b197c",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 270.303,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35094,
    "c": 0.15492,
    "h": 301.6
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#4B197C
secondary
#78B040
accent
#E93E93
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B197C

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

Preview Lab → · Contrast checker → · Palette generator →

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