#4D1FA8#4D1FA8

#4D1FA8 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.197 H 289.4°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#4D1FA8
RGBrgb(77, 31, 168)
HSLhsl(260, 69%, 39%)
HSVhsv(260, 82%, 66%)
CMYKcmyk(54.2%, 81.5%, 0%, 34.1%)
CIE-LABlab(27.80, 51.99, -64.69)
CIE-LCHlch(27.80, 82.99, 308.79°)
OKLaboklab(40.14% 0.0657 -0.1861)
OKLCHoklch(40.14% 0.197 289.4)
XYZxyz(10.6164, 5.3844, 37.5181)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1FA8 #7AA81F
analogous
#1F36A8 #4D1FA8 #921FA8
triadic
#4D1FA8 #A84D1F #1FA84D
tetradic
#4D1FA8 #A81F36 #7AA81F #1FA892
square
#4D1FA8 #A81F36 #7AA81F #1FA892
split-complementary
#4D1FA8 #A8921F #36A81F
monochromatic
#1E0C41 #351574 #4D1FA8 #662CD8 #8B60E2

Accessibility & contrast

On white

10.11
#4D1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4D1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1FA8
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1FA8#FFFFFF#000000##FFFFFF
##4D1FA81.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#294865
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d1fa8;
/* rgb */ color: rgb(77, 31, 168);
/* oklch */ color: oklch(40.1% 0.197 289.4);
Tailwind
colors: {
  custom: {
    50: '#8962c3',
    500: '#4d1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #4d1fa8;
$custom-light: #8962c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1fa8",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 260.146,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40142,
    "c": 0.19732,
    "h": 289.4
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#4D1FA8
secondary
#A3C65D
accent
#EC3CB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4D1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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