#4D27B2#4D27B2

#4D27B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.201 H 286.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4D27B2
RGBrgb(77, 39, 178)
HSLhsl(256, 64%, 43%)
HSVhsv(256, 78%, 70%)
CMYKcmyk(56.7%, 78.1%, 0%, 30.2%)
CIE-LABlab(30.02, 51.22, -67.05)
CIE-LCHlch(30.02, 84.37, 307.38°)
OKLaboklab(41.98% 0.0572 -0.193)
OKLCHoklch(41.98% 0.201 286.5)
XYZxyz(11.8196, 6.2425, 42.6930)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27B2 #8CB227
analogous
#2746B2 #4D27B2 #9327B2
triadic
#4D27B2 #B24D27 #27B24D
tetradic
#4D27B2 #B22746 #8CB227 #27B293
square
#4D27B2 #B22746 #8CB227 #27B293
split-complementary
#4D27B2 #B29327 #46B227
monochromatic
#22114E #371C80 #4D27B2 #6941D5 #9173E0

Accessibility & contrast

On white

9.34
#4D27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27B2
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27B2#FFFFFF#000000##FFFFFF
##4D27B21.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#1D4F6C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d27b2;
/* rgb */ color: rgb(77, 39, 178);
/* oklch */ color: oklch(42.0% 0.201 286.5);
Tailwind
colors: {
  custom: {
    50: '#8a66ca',
    500: '#4d27b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d27b2;
$custom-light: #8a66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27b2",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 256.403,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41978,
    "c": 0.20134,
    "h": 286.5
  },
  "luminance": 0.06243
}

Semantic roles & 50–950 ramp

primary
#4D27B2
secondary
#AFC86D
accent
#E741BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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