#4D2FB1#4D2FB1

#4D2FB1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.192 H 285.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4D2FB1
RGBrgb(77, 47, 177)
HSLhsl(254, 58%, 44%)
HSVhsv(254, 73%, 69%)
CMYKcmyk(56.5%, 73.4%, 0%, 30.6%)
CIE-LABlab(31.31, 46.98, -64.32)
CIE-LCHlch(31.31, 79.65, 306.14°)
OKLaboklab(42.86% 0.0516 -0.1851)
OKLCHoklch(42.86% 0.192 285.6)
XYZxyz(12.0105, 6.7844, 42.2631)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FB1 #93B12F
analogous
#2F52B1 #4D2FB1 #8E2FB1
triadic
#4D2FB1 #B14D2F #2FB14D
tetradic
#4D2FB1 #B12F52 #93B12F #2FB18E
square
#4D2FB1 #B12F52 #93B12F #2FB18E
split-complementary
#4D2FB1 #B18E2F #52B12F
monochromatic
#231550 #382281 #4D2FB1 #6B4DD0 #947EDD

Accessibility & contrast

On white

8.91
#4D2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4D2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FB1
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FB1#FFFFFF#000000##FFFFFF
##4D2FB11.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#1D536D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d2fb1;
/* rgb */ color: rgb(77, 47, 177);
/* oklch */ color: oklch(42.9% 0.192 285.6);
Tailwind
colors: {
  custom: {
    50: '#8a6bc9',
    500: '#4d2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #4d2fb1;
$custom-light: #8a6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2fb1",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 253.846,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42859,
    "c": 0.19219,
    "h": 285.6
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#4D2FB1
secondary
#B3C576
accent
#E147BE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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