#4D27C2#4D27C2

#4D27C2 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.6% C 0.219 H 283.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#4D27C2
RGBrgb(77, 39, 194)
HSLhsl(255, 67%, 46%)
HSVhsv(255, 80%, 76%)
CMYKcmyk(60.3%, 79.9%, 0%, 23.9%)
CIE-LABlab(31.63, 55.70, -73.86)
CIE-LCHlch(31.63, 92.51, 307.02°)
OKLaboklab(43.58% 0.0523 -0.2129)
OKLCHoklch(43.58% 0.219 283.8)
XYZxyz(13.5207, 6.9230, 51.6523)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27C2 #9CC227
analogous
#274EC2 #4D27C2 #9B27C2
triadic
#4D27C2 #C24D27 #27C24D
tetradic
#4D27C2 #C2274E #9CC227 #27C29B
square
#4D27C2 #C2274E #9CC227 #27C29B
split-complementary
#4D27C2 #C29B27 #4EC227
monochromatic
#25135C #391D8F #4D27C2 #6F4BDB #977EE5

Accessibility & contrast

On white

8.81
#4D27C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4D27C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27C2
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27C2#FFFFFF#000000##FFFFFF
##4D27C21.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC6
Deuteranopia (green-blind)
#0045BF
Tritanopia (blue-blind)
#005675
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d27c2;
/* rgb */ color: rgb(77, 39, 194);
/* oklch */ color: oklch(43.6% 0.219 283.8);
Tailwind
colors: {
  custom: {
    50: '#8d67d6',
    500: '#4d27c2',
    950: '#000000',
  },
}
SCSS
$custom: #4d27c2;
$custom-light: #8d67d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27c2",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 194
  },
  "hsl": {
    "h": 254.71,
    "s": 66.524,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43583,
    "c": 0.21927,
    "h": 283.8
  },
  "luminance": 0.06924
}

Semantic roles & 50–950 ramp

primary
#4D27C2
secondary
#B8CE77
accent
#E93EBF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #4D27C2

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

Preview Lab → · Contrast checker → · Palette generator →

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