#4D2FAF#4D2FAF

#4D2FAF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.190 H 285.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4D2FAF
RGBrgb(77, 47, 175)
HSLhsl(254, 58%, 44%)
HSVhsv(254, 73%, 69%)
CMYKcmyk(56%, 73.1%, 0%, 31.4%)
CIE-LABlab(31.13, 46.39, -63.43)
CIE-LCHlch(31.13, 78.58, 306.18°)
OKLaboklab(42.67% 0.052 -0.1825)
OKLCHoklch(42.67% 0.19 285.9)
XYZxyz(11.8126, 6.7053, 41.2209)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2FAF #91AF2F
analogous
#2F51AF #4D2FAF #8D2FAF
triadic
#4D2FAF #AF4D2F #2FAF4D
tetradic
#4D2FAF #AF2F51 #91AF2F #2FAF8D
square
#4D2FAF #AF2F51 #91AF2F #2FAF8D
split-complementary
#4D2FAF #AF8D2F #51AF2F
monochromatic
#23154F #38227F #4D2FAF #6B4CCF #937CDC

Accessibility & contrast

On white

8.97
#4D2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4D2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2FAF
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2FAF#FFFFFF#000000##FFFFFF
##4D2FAF1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#20526C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d2faf;
/* rgb */ color: rgb(77, 47, 175);
/* oklch */ color: oklch(42.7% 0.190 285.9);
Tailwind
colors: {
  custom: {
    50: '#896bc8',
    500: '#4d2faf',
    950: '#000000',
  },
}
SCSS
$custom: #4d2faf;
$custom-light: #896bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2faf",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 254.063,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42672,
    "c": 0.1898,
    "h": 285.9
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#4D2FAF
secondary
#B2C475
accent
#E147BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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